lisaw has asked for the wisdom of the Perl Monks concerning the following question:
Would I need to push this into an array? If so, how could I accomplish this? Thanks for any helpopen(IMGDB, "$img_db"); # Open db for reading @imgarray=<IMGDB>; close (IMGDB); foreach my $imgline (@imgarray) { if ($imgline =~ /\Q$search\E/i) { my ($img_name,$img_desc) = split /\|/, $imgline; print <<End_of_head; <option value='$img_name'>$img_desc</option> End_of_head } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Array Question
by sacked (Hermit) on Jun 08, 2004 at 15:27 UTC | |
by lisaw (Beadle) on Jun 08, 2004 at 16:26 UTC | |
|
Re: Array Question
by Plankton (Vicar) on Jun 08, 2004 at 15:16 UTC | |
|
Re: Array Question
by BrowserUk (Patriarch) on Jun 08, 2004 at 15:22 UTC | |
|
Re: Array Question
by pelagic (Priest) on Jun 08, 2004 at 15:22 UTC | |
by Anonymous Monk on Jun 09, 2004 at 10:33 UTC | |
|
Re: Array Question
by TomDLux (Vicar) on Jun 09, 2004 at 02:56 UTC |