Changeset 2261 for lang/perl/Acme-StrictAndWarnings
- Timestamp:
- 12/02/07 00:55:53 (12 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Acme-StrictAndWarnings/trunk/lib/Acme/StrictAndWarnings.pm
r2258 r2261 12 12 ); 13 13 14 sub import { 15 shift; 16 14 sub _parse_args { 17 15 my @strict; 18 16 my @warnings; … … 24 22 } 25 23 } 24 return { strict => \@strict, warnings => \@warnings }; 25 } 26 26 27 strict->import(@strict); 28 warnings->import(@warnings); 27 sub import { 28 shift; 29 30 my $args = _parse_args(@_); 31 32 strict->import(@{$args->{strict}}); 33 warnings->import(@{$args->{warnings}}); 29 34 } 30 35 31 36 sub unimport { 32 37 shift; 33 strict->unimport; 34 warnings->unimport; 38 if (@_) { 39 my $args = _parse_args(@_); 40 41 if (@{$args->{strict}}) { 42 strict->unimport(@{$args->{strict}}); 43 } 44 if (@{$args->{warnings}}) { 45 warnings->unimport(@{$args->{warnings}}); 46 } 47 } 48 else { 49 strict->unimport; 50 warnings->unimport; 51 } 35 52 } 36 53
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)