Do you know where your variables are? | |
PerlMonks |
Re^3: Golf Challenge: FizzBuzzby liverpole (Monsignor) |
on Mar 02, 2007 at 20:15 UTC ( [id://602950]=note: print w/replies, xml ) | Need Help?? |
Unfortunately, the last several entries are all missing newlines, which makes the output very hard to read.
It seems like such output is just a little too golfed! Update: Otherwise, you can still make it shorter:
Update 2: As Sidhekin pointed out to me, the -l switch makes the newline problems go away. On an unrelated note, I thought it would be fun writing a version that doesn't use the modulo operator (%). Originally I tried golfing it, but it didn't golf well, so here's an easy-to-read version, which makes use of divisibility tests:
s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/
In Section
Meditations
|
|