mexnix has asked for the wisdom of the Perl Monks concerning the following question:
Anyway, I collect the info from the text file into an array through a open() command. I use some of the array throughout embedded html code (i.e. name, date written, author, etc), but the last part is the actual article (The idea is that paragraphs are also deliminated by newlines). Because the # of para's will change with the writer, I need to be able to just iterate over the list, but I don't want to display the whole array ($array[4] and beyond). I've tried for(), while(), and foreach(), with no luck.
If you can help, that would be great! I may just be an idiot, but I'm ok with that.
-Ryan
The array set up like this:
@array = ("img", "title", "date", "author", "para(1)",..."para(n)")
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: print part of an array
by chromatic (Archbishop) on May 09, 2001 at 21:27 UTC | |
|
Re: print part of an array
by srawls (Friar) on May 09, 2001 at 21:36 UTC | |
|
Re: print part of an array
by suaveant (Parson) on May 09, 2001 at 21:31 UTC | |
|
Re: print part of an array
by mexnix (Pilgrim) on May 09, 2001 at 22:07 UTC |