Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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: (9)
As of 2014-12-22 22:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (132 votes), past polls