Help for this page

Select Code to Download


  1. or download this
    if ($in{username} =~ /^(\[a-zA-Z]{2})/ || ' ') {
         $dirtype = $1 || 'other';
    }
    
  2. or download this
    my $dirtype;
    if ( $in{username} =~ /^([a-zA-Z]{2})$/ ) {
    ...
    } else {
          $dirtype = 'other';
    }