D
dn_perl
I want to print a line using shell script via perl.
Contents of the file 'myshell' are :
-------------
#!/bin/csh
echo "line from shell script" ;
-------------
Contents of the file 'myperl' are :
-------------
#!/bin/perl
use strict ;
`myshell` ;
-------------
If I run 'myperl' it prints nothing on my monitor.
But if I replace backticks with 'system' call, the line in the shell
script is printed.
New contents of 'myperl' are :
-------------
#!/bin/perl
use strict ;
system ("myshell") ;
-------------
Why doesn't the 'echo' statement in the shell-script print on the
monitor when backticks are used?
TIA.
Contents of the file 'myshell' are :
-------------
#!/bin/csh
echo "line from shell script" ;
-------------
Contents of the file 'myperl' are :
-------------
#!/bin/perl
use strict ;
`myshell` ;
-------------
If I run 'myperl' it prints nothing on my monitor.
But if I replace backticks with 'system' call, the line in the shell
script is printed.
New contents of 'myperl' are :
-------------
#!/bin/perl
use strict ;
system ("myshell") ;
-------------
Why doesn't the 'echo' statement in the shell-script print on the
monitor when backticks are used?
TIA.