Re: Redefining the behaviour of warn.

2007-01-11 Thread Muttley Meen
On 1/10/07, Peter Scott <[EMAIL PROTECTED]> wrote: On Wed, 10 Jan 2007 08:32:26 -0500, Muttley Meen wrote: > On 1/10/07, Peter Scott <[EMAIL PROTECTED]> wrote: >> On Wed, 10 Jan 2007 07:37:24 -0500, Muttley Meen wrote: >> > I have the code: >> > $SIG{__WARN__} = sub { print $_[0]; } ; >> >> perld

Re: Redefining the behaviour of warn.

2007-01-11 Thread Ken Foskey
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

RE: Redefining the behaviour of warn.

2007-01-10 Thread Christian, Ed
> > On 1/10/07, Peter Scott <[EMAIL PROTECTED]> wrote: > > > On Wed, 10 Jan 2007 07:37:24 -0500, Muttley Meen wrote: > > > > I have the code: > > > > > > > > $SIG{__WARN__} = sub { print $_[0]; } ; > > > > > > > > > > perldoc -f die > > > > > > (perldoc -f warn should probably be clearer on this.)

RE: Redefining the behaviour of warn.

2007-01-10 Thread Christian, Ed
> On 1/10/07, Peter Scott <[EMAIL PROTECTED]> wrote: > > On Wed, 10 Jan 2007 07:37:24 -0500, Muttley Meen wrote: > > > I have the code: > > > > > > $SIG{__WARN__} = sub { print $_[0]; } ; > > > > > > > perldoc -f die > > > > (perldoc -f warn should probably be clearer on this.) > > > Already did th

Re: Redefining the behaviour of warn.

2007-01-10 Thread Peter Scott
On Wed, 10 Jan 2007 08:32:26 -0500, Muttley Meen wrote: > On 1/10/07, Peter Scott <[EMAIL PROTECTED]> wrote: >> On Wed, 10 Jan 2007 07:37:24 -0500, Muttley Meen wrote: >> > I have the code: >> > $SIG{__WARN__} = sub { print $_[0]; } ; >> >> perldoc -f die >> >> (perldoc -f warn should probably be c

Re: Redefining the behaviour of warn.

2007-01-10 Thread Muttley Meen
On 1/10/07, Peter Scott <[EMAIL PROTECTED]> wrote: On Wed, 10 Jan 2007 07:37:24 -0500, Muttley Meen wrote: > I have the code: > > $SIG{__WARN__} = sub { print $_[0]; } ; > perldoc -f die (perldoc -f warn should probably be clearer on this.) Already did that :) $SIG{__WARN__} = sub { my $ms

Re: Redefining the behaviour of warn.

2007-01-10 Thread Peter Scott
On Wed, 10 Jan 2007 07:37:24 -0500, Muttley Meen wrote: > 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 > n

Redefining the behaviour of warn.

2007-01-10 Thread Muttley Meen
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