in reply to date problem with movie script

You say "the line is generating an error". What kind of an error?

Is it a warning about an uninitialized variable?

Is it an error that terminates the script?

Is it a logic error (i.e. a bug?) In which case, how sure are you the bug really originates in that line?

Replies are listed 'Best First'.
Re: Re: date problem with movie script
by ckdot (Novice) on Apr 16, 2004 at 13:03 UTC
    The error is:
    Use of uninitiated value in exists at getdata.pl line 1943
    Use of uninitiated value in hash element at getdata.pl line 1948

    That is on the "first" URL, on all subsequent ones (there are 6 more, for total of 7 days of movietimes) there is the first line "1943" error, plus this:
    Use of uninitiated value in hash element at getdata.pl line 1952

    The script finishes executing, but it does not "parse" (?) the data for download to my PalmPilot.

    I think it is that line because it is what I think is the part of the program that tells it what date to look at/for. Yahoo changed their website format so the dates are different now. (refer to original posting for this logic) Note - I know so little about PERL & programming my logic may be flawed..

    Let me know what other information I need to post if something is unclear
      I'm sorry - either the original page has changed, or I'm missing something, but I don't see the difference in dates between the two pages.

      IMHO your best bet would be to either read perldoc perlre which will teach you to make regular expressions for yourself, or use Date::Manip to translate the date into the form you need. Or both, quite possibly.

        The two HTML links I listed do actually take you to the same page. I do not have a copy of the html page before it was changed. I did not even know it changed until my script stopped working and then I could not retrieve a copy of the old HTML code.