in reply to Re^3: Perl @INC Error (cron)
in thread Perl @INC Error

Ok, I figured out the problem and it's really weird. When I go into the directory using "cd" and execute the script from there "perl script.pl" it works. I just tried it on windows too. But whenever I try "perl /path/script.pl" it gives me that data set error.

Replies are listed 'Best First'.
Re^5: Perl @INC Error (cron)
by choroba (Cardinal) on Aug 15, 2013 at 15:53 UTC
    The script probably expects the data file in the directory from which it was started. If you start it from a different one, it cannot find the data.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ