Help for this page

Select Code to Download


  1. or download this
    open (TEST,"test") || die $!;
    mysub (TEST);
    ...
    my $txt = <$fh>;
    print $txt;
    }
    
  2. or download this
    package mypac;
    sub mysub {
    ...
    package main;
    open (TEST,"test") || die $!;
    mypac::mysub ("main::TEST");