Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Please Explain this Function

by Nkuvu (Priest)
on May 15, 2009 at 17:33 UTC ( #764319=note: print w/replies, xml ) Need Help??


in reply to Re: Please Explain this Function
in thread Please Explain this Function

msg /StartBE        (#  &#9492;żj</
(more or less, the └ in the code tags was replaced by its HTML equivalent, &#9492;)

Not very useful in determining what the pack function is trying to do. It looks like line noise, so did the pack fail? Is the format wrong? I dunno.

But I'll also mention that pack and unpack still confuse me, even though I know the surrounding Perl syntax in that function. And even after reading most of perldoc -f pack and perldoc perlpacktut.

Replies are listed 'Best First'.
Re^3: Please Explain this Function
by apl (Monsignor) on May 16, 2009 at 00:23 UTC
    You had asked
    can you please Tell what $msg Returns here.

    My point is that you could have found out for yourself what was being returned. Anything else (what does pack/unpack do) is a separate question.

      Minor note, I'm not the person who originally asked.

      Another note, koti688 did specifically ask "I want to know what pack and Unpack do excatly" [sic]. Although I will admit that I missed the second question the first time I read it. But in any case, it's pretty clear from the printed output that someone unfamiliar with pack/unpack isn't going to gain much from looking at the output.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://764319]
help
Chatterbox?
[james28909]: i figured out a neet trick
[Lady_Aleena]: james28909, what neat trick?
[james28909]: now if i have packed a script into a PDK exe, and misplaced the source, i can print it.
[james28909]: but you have to prepare for it first by adding this to the source
[james28909]: seek DATA, 0, 0; while (<DATA>) { print; }
[Lady_Aleena]: Sounds interesting. Have you written a meditation or cool use for it?
[Lady_Aleena]: It might be something PerlMonks at large would be interested in.

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2017-05-01 00:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (543 votes). Check out past polls.