Hi.

I have the code:

$SIG{__WARN__} = sub { print $_[0]; } ;

I'm expecting that when i use
warn "WARN"; only "WARN" will be printed to STDERR, no other text.
but perl is smart to tell me the file and the line, even though I did
not requested
that:
WARN at ./1.pl line 4.


Is there a way not to print the file and the line ?

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to