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.13 by root, Tue Jul 30 23:27:09 2013 UTC vs.
Revision 1.17 by root, Mon Jun 29 12:40:22 2015 UTC

1#! perl-000 1#! perl-000
2
3our $VERSION = 3.74;
2 4
3open STDOUT, ">$ARGV[0]~" 5open STDOUT, ">$ARGV[0]~"
4 or die "$ARGV[0]~: $!"; 6 or die "$ARGV[0]~: $!";
5 7
6our ($WARN, $H, %H); 8our ($WARN, $H, %H);
18 } 20 }
19 if ($] >= 5.016) { 21 if ($] >= 5.016) {
20 feature->import (qw(current_sub fc evalbytes)); 22 feature->import (qw(current_sub fc evalbytes));
21 feature->unimport (qw(array_base)); 23 feature->unimport (qw(array_base));
22 } 24 }
25
23} 26}
24 27
25no warnings; 28no warnings;
26use warnings qw(FATAL closed threads internal debugging pack malloc portable prototype 29use warnings qw(FATAL closed threads internal debugging pack malloc portable prototype
27 inplace io pipe unpack deprecated glob digit printf 30 inplace io pipe unpack glob digit printf
28 layer reserved taint closure semicolon); 31 layer reserved taint closure semicolon);
29no warnings qw(exec newline unopened); 32no warnings qw(exec newline unopened);
30 33
31BEGIN { 34BEGIN {
32 $H = $^H; 35 $H = $^H;
43 printf " \$^H |= 0x%x;\n", $H; 46 printf " \$^H |= 0x%x;\n", $H;
44 47
45 if (my @features = grep /^feature_/, keys %H) { 48 if (my @features = grep /^feature_/, keys %H) {
46 print " \@^H{qw(@features)} = (1) x ", (scalar @features), ";\n"; 49 print " \@^H{qw(@features)} = (1) x ", (scalar @features), ";\n";
47 } 50 }
51 } elsif (/^VERSION/) {
52 print "our \$VERSION = $VERSION;\n";
48 } else { 53 } else {
49 print; 54 print;
50 } 55 }
51} 56}
52 57
54rename "$ARGV[0]~", $ARGV[0]; 59rename "$ARGV[0]~", $ARGV[0];
55 60
56__DATA__ 61__DATA__
57package common::sense; 62package common::sense;
58 63
59our $VERSION = '3.7'; 64VERSION
60 65
61# overload should be included 66# overload should be included
62 67
63sub import { 68sub import {
64 local $^W; # work around perl 5.16 spewing out warnings for next statement 69 local $^W; # work around perl 5.16 spewing out warnings for next statement

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines