Re: warnings.pm and $^W

2005-04-07 Thread JupiterHost.Net
Hello, Anyone have any idea how to tell is its in use warnings or no warnings mode? Did you read "perldoc warnings"? :) sure enough, that was kinda dumb... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: warnings.pm and $^W

2005-04-07 Thread John W. Krahn
JupiterHost.Net wrote: The $^W flag can allow you see if -w has been specified: $ perl -mstrict -we 'warn "Danger Will Robinson" if $^W;' Danger Will Robinson at -e line 1. $ but if you use warnings instead it doesn;t work: $ perl -mstrict -e 'use warnings;warn "warn" if $^W;no warnings;warn "foo"

warnings.pm and $^W

2005-04-07 Thread JupiterHost.Net
The $^W flag can allow you see if -w has been specified: $ perl -mstrict -we 'warn "Danger Will Robinson" if $^W;' Danger Will Robinson at -e line 1. $ but if you use warnings instead it doesn;t work: $ perl -mstrict -e 'use warnings;warn "warn" if $^W;no warnings;warn "foo" if $^W;' $ Anyone hav