Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
if(param()){ my $name = param('name'); my $update = param('search'); if($search eq "Exact"){ if($name) { if(exists $snailmail{$name} { print "$snailmail{$name}; } else( print "Name not found in directory"); } else( print "Please enter a name to search for"; } if($search eq "All") { foreach (sort keys %snailmail) { print "$_ : $snailmail{$_}"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Possible looping or syntax error
by Roy Johnson (Monsignor) on Dec 23, 2003 at 15:57 UTC | |
|
Re: Possible looping or syntax error
by jeffa (Bishop) on Dec 23, 2003 at 16:18 UTC | |
|
Re: Possible looping or syntax error
by talexb (Chancellor) on Dec 23, 2003 at 16:04 UTC | |
|
Re: Possible looping or syntax error
by bm (Hermit) on Dec 23, 2003 at 15:57 UTC | |
|
Re: Possible looping or syntax error
by dragonchild (Archbishop) on Dec 23, 2003 at 18:19 UTC | |
by chromatic (Archbishop) on Dec 23, 2003 at 20:06 UTC | |
by dragonchild (Archbishop) on Dec 24, 2003 at 13:51 UTC | |
|
Re: Possible looping or syntax error
by Roger (Parson) on Dec 23, 2003 at 23:46 UTC |