|
|
| Just another Perl shrine | |
| PerlMonks |
Re: Script critique requestedby toolic (Chancellor) |
| on Oct 04, 2012 at 17:32 UTC ( #997271=note: print w/ replies, xml ) | Need Help?? |
|
I think it can be simplified (subject to your <256 constraint) using printf:
See also the FAQ:
But, yours is an interesting use of the <=> operator.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||