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