in reply to Running script at server

my $page= get('$url') won't work. Even if $url was defined -- it's not -- it still wouldn't work. my $page= get("$url") would work, but you want plain old my $page= get($url).

I don't think or die("$!") works as you expect, since LWP::Simple::get doesn't set $! as far as I know. It will die as expected, however, which leads to the question: Why didn't you check for or mention error messages? This would have given you one.

Replies are listed 'Best First'.
Re^2: Running script at server
by juan25 (Initiate) on Nov 23, 2004 at 17:42 UTC
    Thank you for putting some light on this, so far I've managed to get that error code from the server: Can't locate LWP/Simple.pm in @INC (@INC contains: /usr/local/nf/lib/perl5/5.6.1/i386-freebsd /usr/local/nf/lib/perl5/5.6.1 /usr/local/nf/lib/perl5/site_perl/5.6.1/i386-freebsd /usr/local/nf/lib/perl5/site_perl/5.6.1 /usr/local/nf/lib/perl5/site_perl .) at rssmaker.pl line 7. BEGIN failed--compilation aborted at rssmaker.pl line 7. Does it means that the lwp module is not installed on the server? thanks