http://qs321.pair.com?node_id=299941


in reply to Re: Question regarding variable scope
in thread Question regarding variable scope

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.