in reply to Find out, if "use warnings(all)" and "use strict(all)" are used
This will display at runtime the values in use at compile time _at that specific point in the program_.use strict; my $all; use warnings 'all'; BEGIN { $all = unpack( 'b*', ${^WARNING_BITS} ); } print "ALL : $all\n"; my $none; no warnings 'all'; BEGIN { $none = unpack( 'b*', ${^WARNING_BITS} ); } print "NONE: $none\n"; my $void; use warnings 'void'; BEGIN { $void = unpack( 'b*', ${^WARNING_BITS} ); } print "VOID: $void\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Find out, if "use warnings(all)" and "use strict(all)" are used
by Tobiwan (Beadle) on Apr 23, 2007 at 20:49 UTC |