Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: how to print 'normal' string from hex string?

by BrowserUk (Patriarch)
on Nov 22, 2011 at 17:54 UTC ( [id://939504]=note: print w/replies, xml ) Need Help??


in reply to Re: how to print 'normal' string from hex string?
in thread how to print 'normal' string from hex string?

What is the unpack 'a*' bit for?

print pack 'H*', "4d414a523e576573742d622053544d2d31204d532d4149532843 +4c45415229";; MAJR>West-b STM-1 MS-AIS(CLEAR)

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^3: how to print 'normal' string from hex string?
by johngg (Canon) on Nov 23, 2011 at 11:17 UTC
    What is the unpack 'a*' bit for?

    It is a side effect of my still somewhat flaky understanding of pack/unpack or, in other words, completely un-necessary :-(

    I will update my post.

    Cheers,

    JohnGG

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-04-16 07:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found