To execute perl from shtml file. To execute a perl script within a perl script you do this: exec "./myPerlScript [my parameter]";