in reply to Re^4: Line numbers
in thread Line numbers
Right. The added complexity actually comes from introducing the say function, which takes a list.
say (caller(0))[0];
is expanding to:
say $package, $filename, $line, $subroutine, $hasargs,$wantarray, $eva +ltext, $is_require, $hints, $bitmask, $hinthash,[0];
This gives you the syntax error:
say [0];
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Line numbers
by LanX (Saint) on Mar 17, 2012 at 02:04 UTC | |
by gg48gg (Sexton) on Mar 19, 2012 at 17:42 UTC | |
by LanX (Saint) on Mar 19, 2012 at 18:22 UTC | |
by gg48gg (Sexton) on Mar 19, 2012 at 19:02 UTC | |
Re^6: Line numbers
by Anonymous Monk on Mar 17, 2012 at 02:10 UTC |
In Section
Seekers of Perl Wisdom