ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/common-sense/sense.pm.PL
(Generate patch)

Comparing common-sense/sense.pm.PL (file contents):
Revision 1.15 by root, Wed Jul 31 17:44:54 2013 UTC vs.
Revision 1.19 by root, Thu Apr 2 07:53:41 2020 UTC

1#! perl-000 1#! perl-000
2 2
3our $VERSION = '3.72'; 3our $VERSION = 3.75;
4 4
5open STDOUT, ">$ARGV[0]~" 5open STDOUT, ">$ARGV[0]~"
6 or die "$ARGV[0]~: $!"; 6 or die "$ARGV[0]~: $!";
7 7
8our ($WARN, $H, %H); 8our ($WARN, $H, %H);
20 } 20 }
21 if ($] >= 5.016) { 21 if ($] >= 5.016) {
22 feature->import (qw(current_sub fc evalbytes)); 22 feature->import (qw(current_sub fc evalbytes));
23 feature->unimport (qw(array_base)); 23 feature->unimport (qw(array_base));
24 } 24 }
25
25} 26}
26 27
27no warnings; 28no warnings;
28use warnings qw(FATAL closed threads internal debugging pack malloc portable prototype 29use warnings qw(FATAL closed threads internal debugging pack malloc prototype
29 inplace io pipe unpack deprecated glob digit printf 30 inplace io pipe unpack glob digit printf
30 layer reserved taint closure semicolon); 31 layer reserved taint closure semicolon);
31no warnings qw(exec newline unopened); 32no warnings qw(exec newline unopened);
32 33
33BEGIN { 34BEGIN {
34 $H = $^H; 35 $H = $^H;
42 printf " \${^WARNING_BITS} ^= \${^WARNING_BITS} ^ \"%s\";\n", 43 printf " \${^WARNING_BITS} ^= \${^WARNING_BITS} ^ \"%s\";\n",
43 join "", map "\\x$_", unpack "(H2)*", $WARN; 44 join "", map "\\x$_", unpack "(H2)*", $WARN;
44 print " # use strict, use utf8; use feature;\n"; 45 print " # use strict, use utf8; use feature;\n";
45 printf " \$^H |= 0x%x;\n", $H; 46 printf " \$^H |= 0x%x;\n", $H;
46 47
47 if (my @features = grep /^feature_/, keys %H) { 48 if (my @features = grep /^feature_/, sort keys %H) {
48 print " \@^H{qw(@features)} = (1) x ", (scalar @features), ";\n"; 49 print " \@^H{qw(@features)} = (1) x ", (scalar @features), ";\n";
49 } 50 }
50 } elsif (/^VERSION/) { 51 } elsif (/^VERSION/) {
51 print "our \$VERSION = $VERSION;\n"; 52 print "our \$VERSION = $VERSION;\n";
52 } else { 53 } else {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines