Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Confession of a Perl Hacker

by mwp (Hermit)
on Jan 22, 2001 at 17:17 UTC ( #53477=note: print w/replies, xml ) Need Help??

in reply to Confession of a Perl Hacker

I too have been hacking Perl for quite some time (four years or so, although almost never as my full-time job) and have trouble with pack. I stared at this for a few, brief moments of total confusion before firing off a /msg to The Schwartz and asking for a hint.* Essentially what unpack is doing in that example is defining spacing and data types for each token in the string and returning a list of formatted tokens, which is summarily joined. Crazy stuff.

I've also found that pack/unpack are used far less than they were "back in the day."

Good luck. I look forward to reading this FAQ when you're through.

(merlyn cruelly deferred me to the perldocs for pack/unpack. In hindsight, I don't mind so much, because (I think) I actually learned something. :)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2022-08-07 19:40 GMT
Find Nodes?
    Voting Booth?

    No recent polls found