chaoticset has asked for the wisdom of the Perl Monks concerning the following question:
However, in between reading the docs, I try to slap a little code together, figuring that getting it on my hands will teach me better than getting it on my eyes (at first).
Now, I know how to do something to each instance of an array.
foreach $thing (@thingies) { something($thing) }
And I've seen how to generate a table from the CGI documentation. (And I won't duplicate it here since I'm working with the copied code before I try to write my own.)
The question: You can't interpolate whole subs, right? So if I do a print statement with a foreach inside it, that's not going to work. Should I slap it all into a hash, or is can I print pieces separately and put the table-stuff *around* the foreach, printing each little chunk of the array as three different table elements by passing them into a short, three-element array?
Is all of this going to make for a prohibitively long return time, considering that the array is going to have 1000+ elements?
Should I give up, and go back to my old job at Subway?
(The last is rhetorical. I know I should go back. I just don't want to.)
Apologies in advance for the time this wastes, and here's hoping I have better questions soon enough.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Yet Another Stupid CGI Question
by Zaxo (Archbishop) on Oct 19, 2001 at 05:41 UTC | |
Re: Yet Another Stupid CGI Question
by mandog (Curate) on Oct 19, 2001 at 06:32 UTC | |
Meta-reply
by Fletch (Bishop) on Oct 19, 2001 at 08:02 UTC | |
by jepri (Parson) on Oct 19, 2001 at 16:43 UTC | |
Re: Yet Another Stupid CGI Question
by chaoticset (Chaplain) on Oct 19, 2001 at 09:19 UTC | |
by davorg (Chancellor) on Oct 19, 2001 at 13:30 UTC | |
by George_Sherston (Vicar) on Oct 19, 2001 at 11:59 UTC | |
by shotgunefx (Parson) on Oct 19, 2001 at 14:21 UTC | |
Re: Yet Another Stupid CGI Question
by alien_life_form (Pilgrim) on Oct 19, 2001 at 12:57 UTC | |
Re: Yet Another Stupid CGI Question
by Armos (Scribe) on Oct 19, 2001 at 05:48 UTC | |
Re: Yet Another Stupid CGI Question
by buckaduck (Chaplain) on Oct 19, 2001 at 16:17 UTC | |
Re: Yet Another Stupid CGI Question
by netjackal (Acolyte) on Oct 19, 2001 at 14:26 UTC | |
Re: Yet Another Stupid CGI Question
by robot_tourist (Hermit) on Oct 19, 2001 at 14:33 UTC | |
Re: Yet Another Stupid CGI Question
by ronzomckelvey (Acolyte) on Oct 24, 2001 at 07:54 UTC |