Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: String to hex

by thundergnat (Deacon)
on Aug 09, 2012 at 14:50 UTC ( #986538=note: print w/replies, xml ) Need Help??


in reply to String to hex

$string = "COM7:"; $string =~ s/(.)(.)?/sprintf("0x%02X%02X\n",ord($2),ord($1))/seg; print "${string}0x0000\n";
0x4F43
0x374D
0x003A
0x0000

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://986538]
help
Chatterbox?
[stevieb]: I suppose I'll have to delete the 2.36 ver, then re-upload 2.36.1 and 2.36.2, and re-version 2.36 as 2.36.0
[Corion]: stevieb: Naah, I wouldn't delete versions from CPAN. Just up the version to 2.37 resp. 2.37.0 / 2.37.1 etc

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (12)
As of 2017-01-19 15:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (170 votes). Check out past polls.