in reply to Re: __FILE__ and __LINE__ for Perl?
in thread __FILE__ and __LINE__ for Perl?
Just to be a little more specific, note that
--
bm
does not contain a trailing newline. If your warning message does contain \n as the last character, warn will not include at demo.pl line 47. See perldoc -f warnwarn "I'm a warning about something";
--
bm
In Section
Seekers of Perl Wisdom