From: Adam Kennedy <adam@ali.as>
Date: Wed, 30 Apr 2003 00:02:40 +1000
Message-ID: <
3EAE8600.2000806@ali.as>
Subject: [PATCH] Re: Minor change to strict.pm. Who? How?
From: Michael G Schwern <schwern@pobox.com>
Date: Tue, 29 Apr 2003 12:26:32 -0700
Message-ID: <
20030429192632.GA6129@windhund.schwern.org>
p4raw-id: //depot/perl@19427
package strict;
-$strict::VERSION = "1.02";
+$strict::VERSION = "1.03";
my %bitmask = (
refs => 0x00000002,
$bits;
}
+my $default_bits = bits(qw(refs subs vars));
+
sub import {
shift;
- $^H |= bits(@_ ? @_ : qw(refs subs vars));
+ $^H |= @_ ? bits(@_) : $default_bits;
}
sub unimport {
shift;
- $^H &= ~ bits(@_ ? @_ : qw(refs subs vars));
+ $^H &= ~ (@_ ? bits(@_) : $default_bits);
}
1;