Syntactic Confectionery Delight | |
PerlMonks |
Re: Re: Question regarding variable scopeby MarkM (Curate) |
on Oct 17, 2003 at 05:36 UTC ( [id://299941]=note: print w/replies, xml ) | Need Help?? |
Better yet, avoid the use of prototypes altogether in Perl. They are broken when it comes to actual programmer expectations. $ means "force scalar context" not "expect a scalar". Note that find_pairing(@list) does not generate a compile time error, but will generate perhaps-unexpected runtime behaviour.
In Section
Seekers of Perl Wisdom
|
|