Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Push + variable argument

by andye (Curate)
on Feb 10, 2009 at 12:12 UTC ( #742746=note: print w/ replies, xml ) Need Help??

in reply to Push + variable argument

Your case1 push @arr, ('val', '1'); definitely does not assign 1 to a variable called $val.

I suggest taking another look at the docs on push.


Comment on Re: Push + variable argument
Select or Download Code
Replies are listed 'Best First'.
Re^2: Push + variable argument
by himanshu.padmanabhi (Acolyte) on Feb 10, 2009 at 12:42 UTC
    This is the full code. push @xsltParams, ('arg', $str); my $result = $stylesheet->transform_file('abc.xml', @xsltParams); Without quotes doesn't give error,but $arg not got filled. In 'abc.xsl',I am supposed to access like this, <xsl:value-of select="$arg"/> where $str contains space separated values which I need to separate and print..

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://742746]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2015-11-29 21:44 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (753 votes), past polls