![]() |
|
Just another Perl shrine | |
PerlMonks |
Re^3: Returning a tied scalarby MarkusLaker (Beadle) |
on Apr 17, 2005 at 11:00 UTC ( #448619=note: print w/replies, xml ) | Need Help?? |
Nobull writes:
There is no need for a prototype which also means you don't need to forgo the OO if you don't want to. Very neat! I guess that relies on two facts: that @_ contains aliases to the args (which I knew but had forgotten) and that shift returns the first element of the array, rather than a copy of it. Thanks for your suggestions, Markus
In Section
Seekers of Perl Wisdom
|
|