>
>
> if ($choice !~ /^sub[12]$/)
> {
> &badchoice;
> }
> else
> {
> &{$hash{$choice}};
> }
>
Actually this if statement should've been
if ($hash{$choice})
{
&{$hash{$choice}};
}
else
{
&badchoice;
}
Much more gooder than the regex.
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
