Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: print one row of array

by QM (Vicar)
on Jun 10, 2004 at 00:05 UTC ( #362940=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      DB<1> @x = ( [qw(a b c)], [qw(d e f)], [qw(g h i)])
    
    ...
       1  'h'
       2  'i'
      DB<3>
    
  2. or download this
    my @x = ( [qw(a b c)], [qw(d e f)], [qw(g h i)]);
    my $row = 1; # print this row
    ...
    {
        print "$x[$row][$col]\n";
    }
    
  3. or download this
    d
    e
    f
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2014-09-30 23:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (386 votes), past polls