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 ( [id://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' };

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-26 07:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found