Help for this page

Select Code to Download


  1. or download this
    open PROG, "|program" or die "Can't open output pipe to 'program'";
    print PROG function();
    close PROG;
    
  2. or download this
    my $input = "first line\nsecond line";
    open TEMP, '>' "temp$$";
    ...
    print $output;
    unlink "temp$$";
    # (tested)