Skip to content

Instantly share code, notes, and snippets.

@bessarabov
Created December 16, 2013 18:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bessarabov/7991901 to your computer and use it in GitHub Desktop.
Save bessarabov/7991901 to your computer and use it in GitHub Desktop.
#!/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