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 reply to Re: Function to produce formatted ord values of a string
by Anonymous Monk
in thread Function to produce formatted ord values of a string
by eyepopslikeamosquito
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |