Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: print one row of array

by QM (Parson)
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?
[Eily]: LanX: sadly I wasn't born a monk
[LanX]: #SoSad #Shame
LanX silently plays Springsteen in the background "♪..♫ ... I'm on fire ..."

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2017-03-24 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (304 votes). Check out past polls.