Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

the good, the bad, and the ugly

by MZSanford (Curate)
on Jul 13, 2001 at 14:36 UTC ( [id://96342] : poem . print w/replies, xml ) Need Help??

Perl 5.6 only, sorry
#!/usr/bin/perl ## ode to bad coders use strict; use constant true => 1; use constant false => 0; BAD_CODERS: { use constant anoyances => "standards"; our $code = sub { "optimal" }; no strict; no warnings; while ($code == "running") { !log(true); } } GOOD_CODERS: { our $code = sub { "stantialy better"}; use strict; use warnings; log(true); eval("All Operations"); if ($! or $@) { print "Error Message\n"; } exit(1) if ($code eq "ERROR"); } END;