Re: PERL arrays

2007-06-05 Thread Yuval Kogman
On Tue, Jun 05, 2007 at 14:36:51 -0700, [EMAIL PROTECTED] wrote:
 how do i declare loop through and print a 4 dim array in PERL

You listen in class. Or buy a book.

Sorry, but we're not here to do your homework, and this is not a
general Perl help mailing list.

You can also probably get by this far using some online tutorial.

-- 
  Yuval Kogman [EMAIL PROTECTED]
http://nothingmuch.woobling.org  0xEBD27418



pgpIQKKbvB8dY.pgp
Description: PGP signature


Re: PERL arrays

2007-06-05 Thread Juerd Waalboer
[EMAIL PROTECTED] skribis 2007-06-05 14:36 (-0700):
 how do i declare loop through and print a 4 dim array in PERL

Please note that Perl 6 is still not an acronym. It's not PERL, but
Perl.

Datastructures are documented in Synopsis 9, at
http://dev.perl.org/perl6/doc/design/syn/S09.html

I couldn't find how to loop over multidimensionally shaped arrays; maybe
you can and maybe someone can show an example.

...Are you sure you were asking about Perl 6?
-- 
korajn salutojn,

  juerd waalboer:  perl hacker  [EMAIL PROTECTED]  http://juerd.nl/sig
  convolution: ict solutions and consultancy [EMAIL PROTECTED]


Re: PERL arrays

2007-06-05 Thread Garrett Cooper

Yuval Kogman wrote:

On Tue, Jun 05, 2007 at 14:36:51 -0700, [EMAIL PROTECTED] wrote:
  

how do i declare loop through and print a 4 dim array in PERL



You listen in class. Or buy a book.

Sorry, but we're not here to do your homework, and this is not a
general Perl help mailing list.

You can also probably get by this far using some online tutorial.

  
   Read perldoc perldata or 
http://perldoc.perl.org/perldata.html#List-value-constructors-list 
(online version).
   Printing's trivial, and I'm pretty sure that allocation is the same 
(depending on what approach you take). I wonder -- does Perl allocate 
arrays optimizing for time (matrix-like) or space (nodes-like).

-Garrett