Message-ID: <
20031027135024.GA12666@abigail.nl>
p4raw-id: //depot/perl@21565
use strict;
-print "1..140\n";
+print "1..141\n";
my $i = 1;
eval "sub good (\$\t\$\n\$) { 1; }";
print "not " if $@;
print "ok ", $i++, "\n";
+
+# Ought to fail, doesn't in 5.8.1.
+eval 'sub bug (\[%@]) { } my $array = [0 .. 1]; bug %$array;';
+print "not " unless $@ =~ /Not a HASH reference/;
+print "ok ", $i++, "\n";