Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Re: Re: Crontab error!

by davorg (Chancellor)
on Apr 04, 2001 at 14:45 UTC ( #69613=note: print w/replies, xml ) Need Help??

in reply to Re: Re: Crontab error!
in thread Crontab error!

Both LWP::Simple and CGI try to export a function called head and they have different prototypes. This can lead to badness - as you've seen.

However, you don't actually use either of these subroutines, so you just need to stop importing them (or, at least, one of them). Quickest fix is to change the use LWP::Simple line to:

use LWP::Simple 'get';

"Perl makes the fun jobs fun
and the boring jobs bearable" - me

Replies are listed 'Best First'.
Re: Re: Re: Re: Crontab error!
by dws (Chancellor) on Apr 04, 2001 at 20:20 UTC
    Or change   use CGI qw/:standard :netscape :html3/;
    to   #use CGI qw/:standard :netscape :html3/;
    or remove that line entirely, since the script doesn't really use anything from

Re: Re: Re: Re: Crontab error!
by Ozoz (Initiate) on Apr 04, 2001 at 14:56 UTC
    Thanks Dave! Though I still receieve an email, it's empty; just informing that the cronjob is done I think. No errors. thx :)
Re: Re: Re: Re: Crontab error!
by Ozoz (Initiate) on Apr 04, 2001 at 15:09 UTC
    500 error.log for the script:
    /home/usr254/html/sa/Global symbol "$sonuc" requires explicit package +name at ok-filmler.cgi line 8. Global symbol "$elle1" requires explicit package name at +i line 15.

      You'll need to predeclare both of these variables. This is a good thing and one of the best reasons for using use strict.

      my $sonuc="/home/usr254/html/sa/filmler/HeadLine.tlt"; my $elle1= get("");

      "Perl makes the fun jobs fun
      and the boring jobs bearable" - me

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://69613]
LanX 1 ..2 ..3 ..4 .. is erix missing ;-)
LanX is Discipulus reciting "Springtime for Hitler" ?
[choroba]: erix could tell you how to do it in Postgres
[chacham]: wow, mysql really is as bad as i thougt
[choroba]: completion?
[LanX]: That's what he usually does when MySQL is mentioned ;-)
[chacham]: the same thing could be achieved with a trigger
[LanX]: choroba yes
chacham shudders at the thought of using a evil

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2017-03-30 15:10 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (360 votes). Check out past polls.