Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

how to print dynamicaly ?

by virudinesh (Acolyte)
on May 30, 2013 at 08:09 UTC ( [id://1035994]=perlquestion: print w/replies, xml ) Need Help??

virudinesh has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: how to print dynamicaly ?
by davido (Cardinal) on May 30, 2013 at 08:53 UTC

    $id_chap is a different variable from @id_chap.

    Do you want something like this?

    foreach my $row ( @id_chap ) { foreach my $col ( @{$row} ) { print "\t$id_chap[$row][$col]\n"; } }

    Dave

Re: how to print dynamicaly ?
by marto (Cardinal) on May 30, 2013 at 08:38 UTC
Re: how to print dynamicaly ?
by CountZero (Bishop) on May 30, 2013 at 11:47 UTC
    Perhaps you were thinking about something like this?
    foreach($id_chap) { print "\t", $_->[0],"\n"; print "\t", $_->[1],"\n"; }

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    My blog: Imperial Deltronics
Re: how to print dynamicaly ?
by Anonymous Monk on May 30, 2013 at 08:21 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-18 20:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found