4 # Test dot without feature
11 use feature qw(say dot);
12 say "Hello" ~ "world";
16 # Test -> for method calls without feature
22 "Many years ago on the island of",
23 $q->a({href=>"http://crete.org/"},"Crete"),
24 "there lived a Minotaur named",
30 <blockquote>Many years ago on the island of <a href="http://crete.org/">Crete</a> there lived a Minotaur named <strong>Fred.</strong></blockquote><hr />
32 # Test . for method calls with feature
33 use feature qw(say dot);
38 "Many years ago on the island of",
39 $q.a({href=>"http://crete.org/"},"Crete"),
40 "there lived a Minotaur named",
46 <blockquote>Many years ago on the island of <a href="http://crete.org/">Crete</a> there lived a Minotaur named <strong>Fred.</strong></blockquote><hr />
48 # Test -> for array/hash dereference without feature
50 my $arrayref = [1,2,3,4,5];
52 my $hashref = {a => 1, b => 2};
58 # Test . for array/hash dereference with feature
59 use feature qw(say dot);
60 my $arrayref = [1,2,3,4,5];
62 my $hashref = {a => 1, b => 2};