Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^4: ACA JAPH

by eyepopslikeamosquito (Chancellor)
on Aug 18, 2007 at 23:09 UTC ( #633539=note: print w/replies, xml ) Need Help??


in reply to Re^3: ACA JAPH
in thread ACA JAPH

Wow, that's a nice node that I wasn't previously aware of. The basic shortenings I made were:

  • all variable names one char in length
  • eliminate variables where you can
  • removed quotes from strings (e.g. "FRED" -> FRED)
  • $x=1;$y=1 -> $x=$y=1
  • shift -> pop in subs
  • removed return in subs
  • split // -> /./g
  • for {...} -> ... for
  • if {...} -> ... or ...
  • ' ' -> $"
These all seem to be mentioned in Perl Golf 101, except perhaps the last one. BTW, I've added Perl Golf 101 to the list of references in The Lighter Side of Perl Culture (Part IV): Golf.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://633539]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2016-12-04 18:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (69 votes). Check out past polls.