Help for this page

Select Code to Download


  1. or download this
    my %handles;
    sub handle_for_name {
    ...
           return $h;
        }
    }
    
  2. or download this
    use Memoize;
    memoize("handle_for_name");
    ...
        open my $h, '<', $f or die "Can't open file '$f': $!";
        return $h;
    }