The Module FindBin gives you a variable called $FindBin::Bin which points to the path where the executed perlscript is; if you need a relative path like my $file = "./files/file.txt";, you can easily write instead:
use FindBin; my $file = "$FindBin::Bin/files/file.txt";
Best regards,
perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"
In reply to Re^3: pipes don't work from cron
by strat
in thread pipes don't work from cron
by vman123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |