Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Re: ASCII Pattern - Golfby devslashneil (Friar) |
on Sep 19, 2003 at 01:08 UTC ( [id://292550]=note: print w/replies, xml ) | Need Help?? |
I just tested that, and it doesn't seem to work.
The abs calls wern't really redundant because you needed to test the greater value displaced from 0, so when you have two negative values -5 < -4 but you still want -5 returned. :)
UPDATE: Well done with the update, it works nicely when i tested it, i liked the use of the sub too, i only wish the game of golf had a longer time limit so i could have played around with some of these ideas for longer, Neil Archibald - /dev/IT -
In Section
Seekers of Perl Wisdom
|
|