Merge from origin/emacs-24
[emacs.git] / test / indent / perl.perl
blob00ef312f735fefbf0b71a17fec4499a35b0cec8f
1 #!/usr/bin/perl
2 # -*- eval: (bug-reference-mode 1) -*-
4 sub add_funds($) {
5 return 0;
8 use v5.14;
10 my $str= <<END;
11 Hello
12 END
14 my $a = $';
16 my $b=3;
18 print $str;
19 if ($c && /====/){xyz;}
21 print "a" . <<EOF . s/he"llo/th'ere/;
22 It's a surprise!
23 EOF
25 print <<\EOF1 . s/he"llo/th'ere/;
26 foo
27 EOF2
28 bar
29 EOF1
31 $config = {
32 b =>
34 "123",
36 c => "123",
39 print <<"EOF1" . <<\EOF2 . s/he"llo/th'ere/;
40 foo
41 EOF2
42 bar
43 EOF1
44 bar
45 EOF2
47 print $'; # This should not start a string!
49 print "hello" for /./;
51 $fileType_filesButNot # bug#12373?
52 = join( '|', map { quotemeta($_).'$' } @{$fileType->{filesButNot}} );