projects
/
p5sagit/Eval-WithLexicals.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
c97f639
)
correct error check with fatal warnings
Graham Knop [Fri, 13 Jun 2014 11:54:03 +0000 (07:54 -0400)]
t/hints.t
patch
|
blob
|
blame
|
history
diff --git
a/t/hints.t
b/t/hints.t
index
88bbec3
..
5ce67d8
100644
(file)
--- a/
t/hints.t
+++ b/
t/hints.t
@@
-24,8
+24,9
@@
$eval->eval('use strictures 1');
{
local $SIG{__WARN__} = sub { };
- ok !eval { $eval->eval('$x') }, 'Unable to use undeclared variable';
- like $@, qr/requires explicit package/, 'Correct message in $@';
+ ok !eval { $eval->eval('${"x"}') }, 'Unable to use undeclared variable';
+ like $@, qr/Can't use string .* as a SCALAR ref/,
+ 'Correct message in $@';
}
is(