in reply to Re^7: Line numbers
in thread Line numbers

Because parens around sub-args are optional.

print '', (caller(0))[0]; means print ( '', (caller(0))[0] );

But providing explicit parens after a sub-name will disable automatic grouping of args.

Cheers Rolf

Replies are listed 'Best First'.
Re^9: Line numbers
by gg48gg (Sexton) on Mar 19, 2012 at 19:02 UTC

    Ahhh, I think I understand. That is why this does work, right?

    print ((caller(0))[0]);