Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2014-11-28 15:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (198 votes), past polls