|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: Why does this compile?by choroba (Cardinal) |
| on Nov 25, 2024 at 17:12 UTC ( [id://11162885]=note: print w/replies, xml ) | Need Help?? |
|
Do you mean the absence of a semicolon before the __END__? Even this compiles and runs:
The __END__ token just tells Perl "stop reading the source right here". perlsyn says "Every simple statement must be terminated with a semicolon, unless it is the final statement in a block, in which case the semicolon is optional". This is exactly the optional case.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||