|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Re^2: Declaring my $var versus declaring my($var)by dh1760 (Acolyte) |
| on Jun 10, 2011 at 14:25 UTC ( [id://909133]=note: print w/replies, xml ) | Need Help?? |
|
Now I understand why "in scalar context returns ..." has sometimes not returned what I expected. Amazing that I've probably coded tens of thousands of lines of perl over the years and have rarely been bitten by this difference. I suspect it's because any time it has caused an unexpected result, I've just figured out a different way to get what I needed. I guess we're never too old to learn ... thanks for the lesson!--
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||