Hi Chas.,

On 5/8/09, Chas. Owens <chas.ow...@gmail.com> wrote:
> The place to go is http://perldoc.perl.org, and in your case
> http://perldoc.perl.org/functions/pack.html and
> http://perldoc.perl.org/functions/unpack.html.  You can also get these
> docs on your machine by saying
>
> perldoc -f pack
> perldoc -f unpack
>
> The key with pack and unpack is to use the right template character.
> In the example, I used l which will turn a Perl number in to a binary
> signed 32 bit integer.  If I had wanted them to be unsigned I could
> have used L.  The documentation for pack lists what the various
> templates are and what they do.  The unpack function uses the same
> templates, but in reverse.


I see; thanks!  I was reading perldoc on the Web; didn't realize a -f
was required for the command line.  It's quite clear it's needed if I
had read the man pages of perldoc......  Thanks!

Ray

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to