in reply to perl script and cron
Scripts running under cron usually run in a very shall we say reduced envrionemnt. Relying on envrionment variables (including PATH), current directories, etc. will usually get you in trouble. You are much better off being as explicit as possible (e.g. use the full path to all commands).