Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Function to produce formatted ord values of a string

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


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

If the speed really matter, then go with this:

sub new_dump_buf_3 { my $buf = shift; sprintf q{%3d } x (length($buf) - 1) . q{%3d}, unpack 'C*', $buf; }


Comment on Re: Function to produce formatted ord values of a string
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://966130]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2015-07-07 07:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls