|
|
| "be consistent" | |
| PerlMonks |
Re: Function to produce formatted ord values of a stringby Anonymous Monk |
| on Apr 20, 2012 at 08:41 UTC ( #966132=note: print w/ replies, xml ) | Need Help?? |
|
From unpack sub ordinal { unpack("W",$_[0]); } # same as ord() So sub ords { pack '(A4)*', unpack 'W*', @_ } though this only pads spaces to the right, and truncates
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||