3 ms·
If you turn strict off, you can have doIt() or die screaming as literal code.
by jerf 6y ago
If you turn strict off, you can have
doIt() or die screaming
as literal code.
- kbenson 6y agoIf 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