Skip to content

Instantly share code, notes, and snippets.

@mgruberman
Created July 7, 2009 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mgruberman/142359 to your computer and use it in GitHub Desktop.
Save mgruberman/142359 to your computer and use it in GitHub Desktop.
perl -Mwarnings -le 'print for keys %warnings::Offsets'\
| xargs -n1 perl -Mwarnings -e '
BEGIN {
$SIG{__WARN__} = sub { $W = 1 };
warnings->unimport( $ARGV[0] )
}
print "foo" if my $x = 0E0;
END { print $ARGV[0] if ! $W } '
# syntax
# all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment