Created
December 16, 2013 18:33
-
-
Save bessarabov/7991901 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings FATAL => 'all'; | |
use feature 'say'; | |
sub with_prototype () { | |
return 100; | |
} | |
sub without_prototype { | |
return 100; | |
} | |
foreach (1) { | |
say with_prototype / 10 ; # / ; die "this dies!"; | |
say without_prototype / 10 ; # / ; die "this dies!"; | |
} | |
__END__ | |
OUTPUT: | |
10 | |
100 | |
this dies! at a.pl line 17. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment