Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 chilling in the Monastery: (11)
As of 2014-09-01 12:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (7 votes), past polls