Help for this page

Select Code to Download


  1. or download this
    open(OUTPUT, " > eol_dos.out") or die $!;
    print OUTPUT <<EOL;
    dir
    EOL
    
  2. or download this
    >ver
    
    ...
    
    >perl a.pl && type eol_dos.out
    dir
    
  3. or download this
    open(OUTPUT, " > eol_dos.out") or die $!;
    print OUTPUT <<EOL;
    ls -1
    EOL
    
  4. or download this
    $ uname
    Linux
    
    $ perl a.pl && cat eol_dos.out
    ls -1
    
  5. or download this
    sqlplus -S "/as sysdba" <<"SQLEND"
    set heading off
    ...
    from dual
    ;
    SQLEND
    
  6. or download this
    my @cmd = (
        sqlplus => (
    ...
    __EOI__
    
    close($to_sqlplus);
    
  7. or download this
    use IPC::Open2 qw( open2 );
    
    ...
    
    close(TO_SQLPLUS);
    waitpid($pid,0);