projects
/
p5sagit/strictures.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
test version argument
[p5sagit/strictures.git]
/
lib
/
strictures.pm
diff --git
a/lib/strictures.pm
b/lib/strictures.pm
index
91b4018
..
79ffcc0
100644
(file)
--- a/
lib/strictures.pm
+++ b/
lib/strictures.pm
@@
-106,7
+106,7
@@
our $Smells_Like_VCS;
sub import {
my $class = shift;
- my %opts = ref $_[0] ? %{$_[0]} : @_;
+ my %opts = @_ == 1 ? %{$_[0]} : @_;
if (!exists $opts{version}) {
$opts{version}
= exists $^H{strictures_enable} ? delete $^H{strictures_enable}