Perl one-liners and JAPHs
User:
chrisdolan
Date: 7/15/2007 11:12 pm
Date: 7/15/2007 11:12 pm
Views: 532
Rating: 0
Rating: 0
At this month's meeting on Thursday, Doug presented a practical and
interesting collection of tips & tricks to write short Perl
programs. One of our (many) digressing conversations was on
obfuscation, Perl golf and JAPHs.
While I do not advocate writing terse code for public consumption
(which hurts maintainability as well as Perl's reputation) it is fun
and addictive.
Here is an URL for a good introduction to JAPH programs:
http://ucan.foad.org/~abigail/Perl/Talks/Japhs/
A too-short introduction to Perl golf is available on Wikipedia:
http://en.wikipedia.org/wiki/Perl_Golf_Apocalypse
The golf competition mailing list is summarized here:
http://www.nntp.perl.org/group/perl.golf/
An example of a nice golf with many learning moments is at this URL,
with an explanation written by me:
http://www.nntp.perl.org/group/perl.golf/2002/07/msg1289.html
and the specification of the problem:
http://perlgolf.sourceforge.net/TPR/0/4b/
Chris
interesting collection of tips & tricks to write short Perl
programs. One of our (many) digressing conversations was on
obfuscation, Perl golf and JAPHs.
While I do not advocate writing terse code for public consumption
(which hurts maintainability as well as Perl's reputation) it is fun
and addictive.
Here is an URL for a good introduction to JAPH programs:
http://ucan.foad.org/~abigail/Perl/Talks/Japhs/
A too-short introduction to Perl golf is available on Wikipedia:
http://en.wikipedia.org/wiki/Perl_Golf_Apocalypse
The golf competition mailing list is summarized here:
http://www.nntp.perl.org/group/perl.golf/
An example of a nice golf with many learning moments is at this URL,
with an explanation written by me:
http://www.nntp.perl.org/group/perl.golf/2002/07/msg1289.html
and the specification of the problem:
http://perlgolf.sourceforge.net/TPR/0/4b/
Chris