#!perl use warnings; use strict; sub line { return((caller())[2]); } print "Line is: ", line(), "\n";
Note that it has to be in a sub. :)
bbfu
Black flowers blossum
Fearless on my breath
In reply to (bbfu) Re: Lines in error messages
by bbfu
in thread Lines in error messages
by bprew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |