;* src/fontset.c: Update obsolete commentary.
[emacs.git] / test / indent / perl.perl
blobea4875432192962d8167f4814839381225f197b1
1 #!/usr/bin/perl
2 # -*- eval: (bug-reference-mode 1) -*-
4 sub add_funds($) {
5 return 0;
8 my $hash = {
9 foo => 'bar',
10 format => 'some',
13 sub some_code {
14 print "will not indent :(";
17 use v5.14;
19 my $str= <<END;
20 Hello
21 END
23 my $a = $';
25 my $b=3;
27 print $str;
28 if ($c && /====/){xyz;}
30 print "a" . <<EOF . s/he"llo/th'ere/;
31 It's a surprise!
32 EOF
34 print <<\EOF1 . s/he"llo/th'ere/;
35 foo
36 EOF2
37 bar
38 EOF1
40 $config = {
41 b =>
43 "123",
45 c => "123",
48 print <<"EOF1" . <<\EOF2 . s/he"llo/th'ere/;
49 foo
50 EOF2
51 bar
52 EOF1
53 bar
54 EOF2
56 print $'; # This should not start a string!
58 print "hello" for /./;
60 $fileType_filesButNot # bug#12373?
61 = join( '|', map { quotemeta($_).'$' } @{$fileType->{filesButNot}} );