Help for this page

Select Code to Download


  1. or download this
    open F, "| some_shell_expression"; # open for writing
    open F, "some_shell_expression |"; # open for reading
    
  2. or download this
    /usr/bin/mycommand < file
    
  3. or download this
        my $cmd = "/usr/bin/mycommand < file";
        if ( system $cmd ) {
    ...
                      : 'without'
                  : sprintf "child exited with value %d\n", $? >> 8;
        }