Looking back over some old code I wrote to adjust my comics update list. B::Deparse marks the old version at 56 lines of code, 1348 bytes, the new version speaks for itself
$x == 1 ? $x = 0 : (/^\S/ and print "\t\t\t\t\n") unless $. == 1;
$x = 1, next if /^\S.*\t+$/;
s/^$/\t\t\t\t/;
s/(\t[SMTWRFU-]{0,7})$/ $1 . '-' x (8 - length($1))/e;
END { print "\n\t\t\t\t" unless $x }It's just amazing how far a little Perl knowledge goes. If I had written this in C, I can't think of anything I'd do significantly different as a novice programmer than an experienced one, I might replace a few if statements with loop control and I'd have better error checking (although it's pretty meaningless here). Perfectly tidy, I know exactly what each of those lines do and if something needs updated only one of those lines should be relevant.
I wish we had some faster processors for embedded systems...and more memory...and a processor that could run off Perl (or LISP if need be). The C's plenty fun, but I could really speed up my coding...