Help for this page

Select Code to Download


  1. or download this
    use English '-no_match_vars';
    open $input_fh, '<', $input_fn or die 'Could not open file: ', $OS_ERR
    +OR;
    ...
        $hash->{$word1} = $word2;   
    }
    close $input_fh or die 'Could not close file: $OS_ERROR';
    
  2. or download this
    my $output = *STDOUT;
    
  3. or download this
    
    ## This in a package else where
    ...
    
    ## From main code
    Your::Package->assign_log_handle( *STDERR );