in reply to Date::Day issues

it fails
i get a problem

How does it fail? What problem do you get? It could be that it cannot find the day subroutine, or the module, but that would be obvious from the error message, if you showed it.

(By the way, why are you using printf? print is more efficient).

Replies are listed 'Best First'.
Re^2: Date::Day issues
by Conal (Beadle) on Mar 25, 2010 at 07:11 UTC
    OK. thanks for the reply. The problem is its just not writing the HTML file.. the code is obviously bombing out around where i introduce this code. I cant troubleshoot properly because i am adding the extra lines of code into something that is already live, It only runs once a day at 5pm. Its on a scheduled task and i cant read any errors msgs off the console. I guess i should try and create some kind of logfile.
    conal.

      The problem is its just not writing the HTML file..

      The printf in your code isn't conditional. If it was reached, it printed something out somewhere, or returned an error. Did it succeed or return an error? What error?

        no it didnt print anything out. I cant get to see the error cos the script is 'live' and on a scheduled task and i cant see the console. can you recommend some way of dumping out error msgs to a log file or something that isnt too obtrusive ? i dont want to be hacking at the code too much as it runs critical tasks every 30minutes. thanks.
        conal.