Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^5: Pascal-Sierpinski for golfersby hbm (Hermit) |
on Dec 02, 2011 at 17:15 UTC ( [id://941389]=note: print w/replies, xml ) | Need Help?? |
Doh, I flubbed that ($/ vs. $\). I so often print$/,/expr/?this:that, I confused myself. And darn you - I had already read your lengthy linked topics, and perhaps all of their references, but I find them irresistable! This time through, I most enjoyed this gem:
The :do$0 is one *sick* loop. And the return value from s/// idea gave me the following "for 1 to 15" method:
A couple more tricks for me!
In Section
Cool Uses for Perl
|
|