projects
/
gitmo/Package-Stash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
6b2008e
)
regexprefs are valid scalar refs too
Jesse Luehrs [Fri, 5 Aug 2011 18:04:49 +0000 (13:04 -0500)]
lib/Package/Stash/PP.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Package/Stash/PP.pm
b/lib/Package/Stash/PP.pm
index
fdb8da9
..
52753c2
100644
(file)
--- a/
lib/Package/Stash/PP.pm
+++ b/
lib/Package/Stash/PP.pm
@@
-105,7
+105,7
@@
sub _valid_for_type {
}
else {
my $ref = reftype($value);
- return !defined($ref) || $ref eq 'SCALAR' || $ref eq 'REF' || $ref eq 'LVALUE';
+ return !defined($ref) || $ref eq 'SCALAR' || $ref eq 'REF' || $ref eq 'LVALUE' || $ref eq 'REGEXP';
}
}