Help for this page

Select Code to Download


  1. or download this
    for( 1 .. 10 ) {
        my $print = make_printer( "dir$_" );
    ...
            $print->( "file$_" );
        }
    }
    
  2. or download this
    sub make_printer {
        my $hdr = shift;
    ...
        }, 'PRINTER';
        sub PRINTER::DESTROY { shift->() }
    }