i'm writing some simple scripts to help me learn perl.
why does the print command get called after the shell script is executed?
the purpose of the shell script is to simply echo to the screen "script run". which is does, but before the print command, you can clearly see the shell script is called after the print command.
print "\ntry and run shell script";
$execute = system("/export/home/reladmin/scripts/tst.ksh") && die "cannot";
OUTPUT:
script run
try and run shell script
you see, this could be a problem when i come to write my proper perl scripts, where i want a shell script to be called and executed before the perl script continues and executes another command.