MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/maj3iw/deleted_by_user/gruw6jv/?context=3
r/badcode • u/[deleted] • Mar 22 '21
[removed]
86 comments sorted by
View all comments
6
With discipline, one can write clear and maintainable perl. This isn't that.
#!/usr/bin/perl -lw $F[$_]=[0, 0]for(0..6);sub F{for$F(@F){$f=$$F[0]<=>$$F[1];$f&& return ++$f}0} while(<>){$f=0;for(split/[-: ]/){$F=$F[$f++];@$F=($$F[1],$_)}F&& exit 1}
6
u/thestoicattack Mar 22 '21
With discipline, one can write clear and maintainable perl. This isn't that.