I have a perl script which takes 2 arguments as follows and calls appropriate function depending on the argument. I call this script from bash, but i want to call it from perl, is it possible?
/opt/sbin/script.pl --group="value1" --rule="value2";
Also the script exits with a return value that I would like to read.
require "/path/to/your/script.pl";requirefiles withoutpackagedirective; usedo.systemprobably returns the same as thewait(pid, &status)system call puts into status.