Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Function to produce formatted ord values of a string

by Anonymous Monk
on Apr 20, 2012 at 08:41 UTC ( #966132=note: print w/replies, xml ) Need Help??


in reply to Function to produce formatted ord values of a string

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://966132]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2017-08-23 11:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (350 votes). Check out past polls.

    Notices?