|
|
| Think about Loose Coupling | |
| PerlMonks |
Re^2: Diamonds for funby hbm (Hermit) |
| on Mar 07, 2011 at 20:38 UTC ( #891907=note: print w/ replies, xml ) | Need Help?? |
|
Squaring a string of ones ((1x$_)**2) is very clever! This works for me up to 8, but 9 fails (because 111111111**2 = 1.23456789876543e+16). (Same for toolic's solution below...) You can save one more character with $" instead of " ".
In Section
Cool Uses for Perl
|
|
||||||||||||||||||||||