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).
And since we are clarifying ... the '-' is part of the key (or the first argument, depending on how you look at it).
Results:bash$ perl -w -Mstrict -MData::Dumper -e \ "print Dumper( { -name => 'foo', -value => 'bar' } );"
$VAR1 = { '-name' => 'foo', '-value' => 'bar' };
|
---|
In Section
Seekers of Perl Wisdom