Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: 2 dimensional array question

by Roger (Parson)
on Sep 05, 2005 at 14:13 UTC ( #489230=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @arr = ( [ qw/ 1 2 3 / ],
             [ qw/ 4 5 6 / ] );
    
  2. or download this
    use Data::Dumper;
    @arr = ( [ qw/ 1 2 3 / ],
    ...
    @arr[0] = qw/ 1 2 3 /;
    @arr[1] = qw/ 4 5 6 /;
    print Dumper(\@arr);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://489230]
help
Chatterbox?
[Lady_Aleena]: Or what Discipulus said.
[shmem]: Lady_Aleena: geany supports ctags.
[Discipulus]: a good compromise can be my ($need, $opts_ref) = @_ a scalar and an hash reference
[Discipulus]: see you monks!
[Lady_Aleena]: shmem, let me get this sub rewritten, then I will look into how to use ctags in geany. Deal? 8)
[shmem]: Discipulus: yeah, that might eventually prepare the path for OO ;-)
[Lady_Aleena]: See you, Discipulus.
[shmem]: Lady_Aleena: that's up to you. I only wanted to show you a path that might be more comforting than command line grep ;-)
[Lady_Aleena]: shmem, I don't think any of my modules could be converted to OO. They are too procedural.
[Lady_Aleena]: Now I will see if my perl-fu is as bad as I think it is.

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2017-04-27 12:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (506 votes). Check out past polls.