My webhost has cPanel which only accepts Perl scripts, aargh
So I'm using this to get Perl to call my real PHP scripts which do all the work
Code:
#!/usr/local/bin/perl -w
use LWP::Simple;
use CGI;
my $URL="my $content = LWP::Simple::get($URL);
print "$content";
I have 2 cron jobs, 2 Perl scripts and 2 PHP scripts.
Both the PHP scripts are called using the full URL even though one is on the same server. Both PHP scripts will work if called directly.
Now, one of the Perl scripts works, but the other doesn't. I get
Quote:
Use of uninitialized value in string at /home/bots04/public_html/myscript.pl line 10.
sent to me by the cron job. If I call it in the browser I get a 500 error. Line 10 is the print "$content"; statement.
Any ideas why it might decide to fall over?
Sarah
So I'm using this to get Perl to call my real PHP scripts which do all the work
Code:
#!/usr/local/bin/perl -w
use LWP::Simple;
use CGI;
my $URL="my $content = LWP::Simple::get($URL);
print "$content";
I have 2 cron jobs, 2 Perl scripts and 2 PHP scripts.
Both the PHP scripts are called using the full URL even though one is on the same server. Both PHP scripts will work if called directly.
Now, one of the Perl scripts works, but the other doesn't. I get
Quote:
Use of uninitialized value in string at /home/bots04/public_html/myscript.pl line 10.
sent to me by the cron job. If I call it in the browser I get a 500 error. Line 10 is the print "$content"; statement.
Any ideas why it might decide to fall over?
Sarah