Help for this page

Select Code to Download


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