Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Re: Argument Passing, preference or performance ?by kshay (Beadle) |
on Nov 12, 2002 at 00:09 UTC ( [id://212158]=note: print w/replies, xml ) | Need Help?? |
I'm not sure I agree that the gracefulness is the same. One situation that comes to mind is when you want to populate the elements of a hash with the passed arguments:
vs.
The first one just seems a lot cleaner to me. (Of course, in practice you might have the list of field names in a predefined array that you could loop through, but you get the idea.) --Kevin
In Section
Seekers of Perl Wisdom
|
|