Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Constructing 32-bit hexadecimal integers

by yakko (Friar)
on Apr 12, 2001 at 00:27 UTC ( #71850=note: print w/replies, xml ) Need Help??

in reply to Constructing 32-bit hexadecimal integers

Here's a way:
print hex(c030), "\n"; # prints "49200"
perldoc -f hex

Update: actually, on closer examination, you want to actually catenate 8-bit values into a big hex string. If this is the case, jeroenes has answered that above... I worked on a program awhile back in which I used something like:

... to get bytes that were raw hex values to display as an ASCII representation of hex.

Me spell chucker work grate. Need grandma chicken.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://71850]
[1nickt]: TCLion are you parsing the dates with DateTime or another tool?
[1nickt]: I note DateTime::Format:: Flexible, announced immediately below this box in the CPAN feed
[Corion]: 1nickt: That one sounds sensible as it will tell you when it found an error
[1nickt]: Throws on error, I believe
[1nickt]: But should handle month as number or word
[TCLion]: I am breaking down the line and putting the date in the correct order during output
[TCLion]: at least that's the plan

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (17)
As of 2017-03-23 14:50 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (288 votes). Check out past polls.