Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Here on the script option values are printed correctly without $eventChoice values.my($Records); foreach $Records(@EventList) { if($Records =~ /(.*)(\,)(.*)/) { if($Records ne $eventChoice){ print "<option value='$Records'>$3</option>\ +n"; } } } &PopulateEventDropDown(@EventList,$eventChoice); sub PopulateEventDropDown { my($Records); my $eventChoice = shift; my @Records = @_; foreach $Records(@Records) { if($Records =~ /(.*)(\,)(.*)/) { if($Records ne $eventChoice) { print "<option value='$Records'>$3</option>\n" +; } } } #end foreach }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: where is the error ??
by wufnik (Friar) on Jul 27, 2004 at 19:06 UTC | |
|
Re: where is the error ??
by calin (Deacon) on Jul 27, 2004 at 19:06 UTC | |
|
Re: where is the error ??
by ysth (Canon) on Jul 28, 2004 at 08:24 UTC |