- or download this
sub query {
my ($str,@argv) = @_;
...
}
return $answer;
}
- or download this
last if grep $answer eq $_, @argv;
- or download this
sub query2 {
my ($str,@argv) = @_;
...
return $argv[0] unless $answer;
}
}
- or download this
$answer = $default if ($answer eq "");
# with this instead
$answer ||= $default;