[Q] How do you use Array#pack?

I know now that I need to use Array#pack, could someone please tell me
where I can find documentation on it?

I’m not asking for one or two examples where I see it used. I actually
want to learn what this method does. Pickaxe doesn’t contain much. Is
there another resource?

In particular, I want to find a list of all the inputs that pack can take
and what they mean. What is “A3”? What is “b*”? To me they look like
random strings of characters.

I hope that someone can tell me where “The Fine Maual” is.

···


Daniel Carrera
Graduate Teaching Assistant. Math Dept.
University of Maryland. (301) 405-5137

Array#pack:
http://www.ruby-doc.org/docs/ProgrammingRuby/html/ref_c_array.html#Array.pack
String#unpack:
http://www.ruby-doc.org/docs/ProgrammingRuby/html/ref_c_string.html#String.unpack

Most useful information contained in String#unpack description.

Gennady.

···

----- Original Message -----
From: “Daniel Carrera” dcarrera@math.umd.edu
To: “ruby-talk ML” ruby-talk@ruby-lang.org
Sent: Monday, May 05, 2003 3:34 PM
Subject: [Q] How do you use Array#pack?

I know now that I need to use Array#pack, could someone please tell me
where I can find documentation on it?

I’m not asking for one or two examples where I see it used. I actually
want to learn what this method does. Pickaxe doesn’t contain much. Is
there another resource?

In particular, I want to find a list of all the inputs that pack can take
and what they mean. What is “A3”? What is “b*”? To me they look like
random strings of characters.

I hope that someone can tell me where “The Fine Maual” is.


Daniel Carrera
Graduate Teaching Assistant. Math Dept.
University of Maryland. (301) 405-5137

Hi,

I know now that I need to use Array#pack, could someone please tell me
where I can find documentation on it?

I’m not asking for one or two examples where I see it used. I actually
want to learn what this method does. Pickaxe doesn’t contain much. Is
there another resource?

I see Brian’s already replied with a link to the on-line
table of pack & unpack parameters…

I just want to mention in defense of Pickaxe, that the paper version
is excellent. It has perhaps the best index of any technical book
I own, and I’ve got bookshelves packed with the things…

Regards,

Bill

···

From: “Daniel Carrera” dcarrera@math.umd.edu

http://www.rubycentral.com/book/ref_c_array.html#Array.pack
http://www.rubycentral.com/book/ref_c_string.html#String.unpack

http://www.perldoc.com/perl5.8.0/pod/func/pack.html
http://www.perldoc.com/perl5.8.0/pod/func/unpack.html

-a

···

On Tue, 6 May 2003, Daniel Carrera wrote:

I know now that I need to use Array#pack, could someone please tell me
where I can find documentation on it?

I’m not asking for one or two examples where I see it used. I actually
want to learn what this method does. Pickaxe doesn’t contain much. Is
there another resource?

In particular, I want to find a list of all the inputs that pack can take
and what they mean. What is “A3”? What is “b*”? To me they look like
random strings of characters.

I hope that someone can tell me where “The Fine Maual” is.

Ara Howard
NOAA Forecast Systems Laboratory
Information and Technology Services
Data Systems Group
R/FST 325 Broadway
Boulder, CO 80305-3328
Email: ara.t.howard@fsl.noaa.gov
Phone: 303-497-7238
Fax: 303-497-7259
====================================

The table of template characters for Array#pack may be found
between the descriptions of Array#include? and Array#index
in Pickaxe.

daz

···

“Daniel Carrera” dcarrera@math.umd.edu wrote

… I need to use Array#pack …

… Pickaxe doesn’t contain much …