10 no warnings 'deprecated';
14 # previous line intentionally left blank.
20 # previous line intentionally left blank.
27 my %foo = (aap => "monkey");
29 is("@{[$foo{'aap'}]}", 'monkey', 'interpolation of hash lookup with space between lexical variable and subscript');
30 is("@{[$foo {'aap'}]}", 'monkey', 'interpolation of hash lookup with space between lexical variable and subscript - test for [perl #70091]');
32 # Original bug report [perl #70091]
37 # (my $tmp = $foo) =~ s/^/$foo {$0}/e;
40 # This program causes a segfault with 5.10.0 and 5.10.1.
42 # The space between '$foo' and '{' is essential, which is why piping
43 # it through perl -MO=Deparse "fixes" it.