laziness, impatience, and hubris | |
PerlMonks |
Re: TIMTOWTDI and other languagesby broquaint (Abbot) |
on Apr 28, 2002 at 22:45 UTC ( [id://162724]=note: print w/replies, xml ) | Need Help?? |
Here's a ruby example
There's a quite a few other ways to do it too, but I liked that one the most. Update: Noticing a somewhat lack of variety in the languages used here's a python example too This is probably the more obvious path, but if you like your tools functional ... The closest I can get in perl is this (map == list comprehension?)
HTH
_________
update: added python examples
In Section
Meditations
|
|