Thanks to
one4k4 for
getting me going on this. It's obfu by default - I didn't have to TRY to make it obscure, just attempt to meet the terms of
the challenge, and the obfucacity takes care of itself. I hope it's o.k. to post it here all the same. I'm off to listen to a concert of one-armed cymbal-players.
#/usr/bin/perl -w
use strict;
my @array = ('#/usr/bin/perl -w ','use strict;','for (0..1) {print $ar
+ray[$_], "\n"};','print q[my @array = (];','for (0..($#array-1)) {&pr
+t($array[$_])}','print "q[",$array[$#array],"]);","\n";','for (2..$#a
+rray) {print $array[$_],"\n"};',q[sub prt {$a = shift;$a =~ s/'/"/g;p
+rint "'",$a,"',"}]);
for (0..1) {print $array[$_], "\n"};
print q[my @array = (];
for (0..($#array-1)) {&prt($array[$_])}
print "q[",$array[$#array],"]);","\n";
for (2..$#array) {print $array[$_],"\n"};
sub prt {$a = shift;$a =~ s/'/"/g;print "'",$a,"',"}
p.s. - sorry about the line-breaks. I guess I
could have re-worked it to eradicate them, but frankly this was enough craziness for one day for this bear of little brain.
§
George Sherston