It seems pretty clear to me, that although modular in their function, these Perl
built-in variables were precisely designed to work with the warn and die
functions. I'll hold with my essential point--that you get a lot more useful
information out of your warning by havng the $! at the end of your custom
message.
You still sound pretty confused to me. ;)
Fact: If the warn() message ends is a newline character, the line number is not appended.
Fact: This has nothing to do with ANY variables, it is the way warn() is designed.
Fact: This is the original question of this thread and what most of the replies address. You might like to reread them at this point.
Please run these two one liners, observing the differences in output, for a good example of this:
perl -e 'warn "Test Warning"'
perl -e 'warn "Test Warning\n"'
Hope that clears things up.
James
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>