# $RCSfile: lex.t,v $$Revision: 4.1 $$Date: 92/08/07 18:27:04 $
-print "1..24\n";
+print "1..26\n";
$x = 'x';
# previous line intentionally left blank.
+print <<E1 eq "foo\n\n" ? "ok 19\n" : "not ok 19\n";
+@{[ <<E2 ]}
+foo
+E2
+E1
+
+print <<E1 eq "foo\n\n" ? "ok 20\n" : "not ok 20\n";
+@{[
+ <<E2
+foo
+E2
+]}
+E1
+
$foo = FOO;
$bar = BAR;
$foo{$bar} = BAZ;
$ary[0] = ABC;
-print "$foo{$bar}" eq "BAZ" ? "ok 19\n" : "not ok 19\n";
+print "$foo{$bar}" eq "BAZ" ? "ok 21\n" : "not ok 21\n";
-print "${foo}{$bar}" eq "FOO{BAR}" ? "ok 20\n" : "not ok 20\n";
-print "${foo{$bar}}" eq "BAZ" ? "ok 21\n" : "not ok 21\n";
+print "${foo}{$bar}" eq "FOO{BAR}" ? "ok 22\n" : "not ok 22\n";
+print "${foo{$bar}}" eq "BAZ" ? "ok 23\n" : "not ok 23\n";
-print "FOO:" =~ /$foo[:]/ ? "ok 22\n" : "not ok 22\n";
-print "ABC" =~ /^$ary[$A]$/ ? "ok 23\n" : "not ok 23\n";
-print "FOOZ" =~ /^$foo[$A-Z]$/ ? "ok 24\n" : "not ok 24\n";
+print "FOO:" =~ /$foo[:]/ ? "ok 24\n" : "not ok 24\n";
+print "ABC" =~ /^$ary[$A]$/ ? "ok 25\n" : "not ok 25\n";
+print "FOOZ" =~ /^$foo[$A-Z]$/ ? "ok 26\n" : "not ok 26\n";