Shell script is not Perl code. Granted, you can use the system() function to call a shell script or execute system commands / scripts, but to actually use the code in your script in the manner you describe, you would have to re-write it in Perl instead.
If you want, you can try to do this, and if you get stuck, post your code here. I would also, at that time, suggest you post the original shell script you are trying to convert as well so we can see what your reference point is.
Regards,
Jeff
|