Is it possible to have a perl script and a bash script in one file? Like:
#!/bin/perl
print "This is perl";
#exit perl
#!/bin/bash
echo "This is bash"
exit 0
This is probably just a complicated solution to a simple problem. I have a perl script, and at the end of it, I want to make a couple calls that I normal write in the shell.
I tried this but it does not work:
$command = "ps";
system $command;
Any help is appreciated greatly.
- Dano