Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: How can I define arrays using foreach loop

by Util (Priest)
on Jul 17, 2002 at 14:04 UTC ( [id://182429]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -W
    use strict;
    ...
      [ \(@array_1,@array_2,@array_3,@array_4,@array_5,@array_6)],
      [qw(*array_1 *array_2 *array_3 *array_4 *array_5 *array_6)],
    );
    
  2. or download this
    @array_1 = ( [ 'able baker charlie roger fox dog', 'able'  ] );
    @array_2 = (                                                 );
    ...
    @array_4 = ( [ 'able baker charlie roger fox dog', 'roger' ] );
    @array_5 = (                                                 );
    @array_6 = ( [ 'able baker charlie roger fox dog', 'dog'   ] );
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2024-04-26 03:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found