On Wed, 2007-01-10 at 07:37 -0500, Muttley Meen wrote: > 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.
One thing that I have noticed that die performs differently.. die "xyz"; prints lots of details. die "zyz\n"; prints only the message. Hope this helps. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/