Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Basic transformations

by mjscott2702 (Pilgrim)
on Nov 29, 2010 at 11:47 UTC ( [id://874231]=note: print w/replies, xml ) Need Help??


in reply to Basic transformations

This seems to work, combining hex and chr - I'm sure it could be shorter:

use strict; use warnings; while(<DATA>) { chomp; my @hex_chars = split; map { print chr(hex($_)); } @hex_chars; print "\n"; } __DATA__ 48 65 6c 6c 6f 2c 20 77 6f 72 6c 64 21

Output:
Hello, world!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-25 15:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found