X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FEval-WithLexicals.git;a=blobdiff_plain;f=t%2Fhints.t;fp=t%2Fhints.t;h=5ce67d80e7a91f46d857c2357c41763cffb1da7b;hp=88bbec36f6719486a119091c4b334a525f7b695b;hb=1f3ae1a298b5ce93414e8a67d2f4cbd9ec9c381e;hpb=c97f63974c1d1d0b422306ab24391fd256cbeceb diff --git a/t/hints.t b/t/hints.t index 88bbec3..5ce67d8 100644 --- 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(