Help for this page

Select Code to Download


  1. or download this
    sub mysub($$;$) {
       my ( $a, $b, $c ) = @_;
       $c ||= 3;   #c is 3 if not already defined
    }
    
  2. or download this
    my $flag = 1;
    foreach (@item) {
       $flag &&= usable( $_ );
    }
    print $flag ? "All usable" : "not all usable";