RE: on warning die

2005-05-20 Thread Peter Scott
On Fri, 20 May 2005 14:37:35 +0530, Ankur Gupta wrote: >> Hello beginners@perl.org, >> >> it is possible to setup somewhere, I want my script dies, if >> warning occurs. > > BEGIN { > $SIG{__WARN__} = sub{ print STDERR @_; exit 1}; > } > > warn "I am going to die\n"; The more modern (la

Re: on warning die

2005-05-20 Thread Ing. Branislav Gerzo
Ankur Gupta [AG], on Friday, May 20, 2005 at 14:37 (+0530) wrote the following: AG> BEGIN { AG> $SIG{__WARN__} = sub{ print STDERR @_; exit 1}; AG> } AG> warn "I am going to die\n"; AG> I hope you are looking for something like this. thanks a lot, this is exactly what I wanted. -- How d

RE: on warning die

2005-05-20 Thread Ankur Gupta
> Hello beginners@perl.org, > > it is possible to setup somewhere, I want my script dies, if > warning occurs. BEGIN { $SIG{__WARN__} = sub{ print STDERR @_; exit 1}; } warn "I am going to die\n"; I hope you are looking for something like this. --Ankur -- To unsubscribe, e-mail:

on warning die

2005-05-20 Thread Ing. Branislav Gerzo
Hello beginners@perl.org, it is possible to setup somewhere, I want my script dies, if warning occurs. Thanks -- --. ,-- ,- ICQ: 7552083 \|||/`//EB: www.2ge.us ,--' | - |--IRC: [2ge](. .),\\SN: 2ge!2ge_us `+==+=+===~ ~=-o00-(_)-00o-==