projects
/
catagits/Catalyst-Runtime.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
in what case is a numeric comparison called for? I cannot think of one. Is this the...
[catagits/Catalyst-Runtime.git]
/
lib
/
Catalyst
/
Component.pm
diff --git
a/lib/Catalyst/Component.pm
b/lib/Catalyst/Component.pm
index
fe0ef6f
..
b0bb7b5
100644
(file)
--- a/
lib/Catalyst/Component.pm
+++ b/
lib/Catalyst/Component.pm
@@
-84,7
+84,7
@@
sub BUILDARGS {
} elsif (Class::MOP::is_class_loaded($_[0]) &&
$_[0]->isa('Catalyst') && ref($_[1]) eq 'HASH') {
$args = $_[1];
- } elsif ($_[0] == $_[1]) {
+ } elsif ($_[0] eq $_[1]) {
$args = $_[1];
} else {
$args = +{ @_ };