Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Basic transformations

by mjscott2702 (Pilgrim)
on Nov 29, 2010 at 11:47 UTC ( #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!


Comment on Re: Basic transformations
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2014-08-27 11:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (237 votes), past polls