in reply to Running Perl Script from Crontab

The crontab entry ...
* * * * * /home/httpd/vhosts/mysite.com/cgi-bin/deleteFiles.pl?documen +troot=/home/user/directory
... could of been writen like so ...
* * * * * wget http://mysite.com/cgi-bin/deleteFiles.pl?documentroot=/ +home/user/directory
The crontab entry ...
* * * * * /home/httpd/vhosts/mysite.com/cgi-bin/deleteFiles.pl /home/u +ser/directory
... could of been writen like so ...
* * * * * /home/httpd/vhosts/mysite.com/cgi-bin/deleteFiles.pl documen +troot=/home/user/directory
Your print debug statement should look like this ...
print "doc=[$documentroot]\n";

Plankton: 1% Evil, 99% Hot Gas.