Here’s mine: <img alt="beginner code c1998" src="/dumpster-fire.jpg"/>. But seriously, folks, I don’t have any handy… without trying to get an old drive to boot. I think this facsimile faithfully sums up the major issue(s) with my earliest production code and has much shorter line-wraps and better variable names to boot!
for my $what ( keys %should_have_been_an_array ) { for my $the ( keys %{$should_have_been_an_array->{$what}} ) { $some_magic_switch_used_later_probably = 1 if fullmoon($the->{ +halfmoon}); for my $hell ( keys %{$should_have_been_an_array->{$what}->{$t +he}} ) { my $readable = $should_have_been_an_array->{$what}->{$the} +->{$hell}; for my $are ( keys %{$readable} ) { for my $you ( keys %{$readable->{$are}} ) { my @sorted = _some_other_thing(%{$readable->{$are} +{$you}}); for my $doing ( @sorted ) { if ( $doing ) { # … } elsif ( $doing->{some_shim_not_in_the_actual_d +ata} || $should_have_been_an_array->{$what}{SK +IP} ) { # … } elsif ( $thirteen_elsifs_later_without_an_else + ) { # …
In reply to Re: What does your old Perl code look like?
by Your Mother
in thread What does your old Perl code look like?
by haukex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |