No such thing as a small change | |
PerlMonks |
Re^6: Line numbersby Anonymous Monk |
on Mar 17, 2012 at 00:39 UTC ( [id://960101]=note: print w/replies, xml ) | Need Help?? |
So you exchange parens for square brackets and add an arrow instead. Sorry, but you really haven't proven your point. They are both non-obvious until you understand how Perl handles precedence and lists. caller(0)[0] fails because you are trying to index a scalar, not a list.
In Section
Seekers of Perl Wisdom
|
|