|
|
| Just another Perl shrine | |
| PerlMonks |
Re: Re: Avoiding user-input in sub calls.by liz (Monsignor) |
| on Nov 02, 2003 at 05:30 UTC ( [id://303900]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Since when dealing with code refs, there is no difference between not existing and undefined, I always prefer to write:
as:
which at least ensures that the same parameters are passed to (and possibly returned from ) the default routine. More compact and fewer things to worry about from a maintenance point of view! Liz
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||