Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: RE: RE: RE: RE: Passing named parameters

by perlmonkey (Hermit)
on Apr 09, 2004 at 01:19 UTC ( #343822=note: print w/ replies, xml ) Need Help??


in reply to Re: RE: RE: RE: RE: Passing named parameters
in thread Passing named parameters

I assume that "is the same as a('beer', none)" is a typo, ... and that you meant "is the same as a('-beer', 'none')"

And since we are clarifying ... the '-' is part of the key (or the first argument, depending on how you look at it).

bash$ perl -w -Mstrict -MData::Dumper -e \ "print Dumper( { -name => 'foo', -value => 'bar' } );"
Results:
$VAR1 = { '-name' => 'foo', '-value' => 'bar' };


Comment on Re: Re: RE: RE: RE: RE: Passing named parameters
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://343822]
help
Chatterbox?
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-07-04 02:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls