Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^5: Context aware functions - best practices?

by Aristotle (Chancellor)
on Jan 15, 2003 at 23:55 UTC ( #227296=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Re: Context aware functions - best practices?
in thread Context aware functions - best practices?

Or maybe just return unless wantarray; because return is smart enough to provide undef by itself in scalar context. :)

Makeshifts last the longest.