2 ms·
If you make a screaming sub, that doesn't even require foregoing strict: $ perl -E 'use strict; use warnings; sub screaming { "SCREAM" } sub doIt { 0 } doI
by kbenson 6y ago
If you make a screaming sub, that doesn't even require foregoing strict:
$ perl -E 'use strict; use warnings; sub screaming { "SCREAM" } sub doIt { 0 } doIt or die screaming'
SCREAM at -e line 1.
Hell, we can go full English if we want:
$ perl -E 'use strict; use warnings; sub screaming {"SCREAM"} sub it {0} sub do {0} do it or die screaming'
SCREAM at -e line 1.
For those following along that aren't quite as familiar with Perl, that's a statement "do it or die screaming" which is all completely valid, strict and well defined Perl. When not a one-liner, it would be:
use strict;
use warnings;
sub screaming {"SCREAM"}
sub it {0}
sub do {0}
do it or die screaming