Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: sending hexadecimal data via telnet

by aitap (Deacon)
on Aug 07, 2012 at 13:25 UTC ( #985983=note: print w/ replies, xml ) Need Help??


in reply to sending hexadecimal data via telnet

Or use pack to transform arbitrary hexademical numbers into bytes. For example:
$ echo -n deadbeef | perl -pe's/([[:xdigit:]]{2})/pack("H2",$1)/ge' | +xxd 0000000: dead beef ....
Sorry if my advice was wrong.
Comment on Re: sending hexadecimal data via telnet
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2016-04-29 13:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    :nehw tseb si esrever ni gnitirW







    Results (441 votes). Check out past polls.