Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: using two arrays to make a table

by LanceDeeply (Chaplain)
on Jun 18, 2002 at 19:06 UTC ( [id://175463]=note: print w/replies, xml ) Need Help??


in reply to using two arrays to make a table

hi bongo-

alot of the monks already suggested good ways to do this.

but, if you're still wondering what's going on in your code,
the shift operator removes elements from @name.
that means the second time through the loop, @name is empty.
and nothing is printed.

Replies are listed 'Best First'.
Re: Re: using two arrays to make a table
by graff (Chancellor) on Jun 19, 2002 at 02:45 UTC
    the second time through the loop, @name is empty.

    Not necessarily... since Bongo didn't mention how the arrays get filled in the first place, @names could have a lot more elements than @headings. But it may be worthwhile for Bongo to check that this is the case.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-19 07:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found