in reply to Finding out how long a script has been running

Remove the = () from your my @pagestarttime = (); line! That little bit is happening at run-time, after the BEGIN block which happened at compile-time!

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker, who'd like a job (NYC-area)
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

  • Comment on Re: Finding out how long a script has been running

Replies are listed 'Best First'.
Re: Re: Finding out how long a script has been running
by carthag (Scribe) on Jun 21, 2002 at 16:13 UTC
    Ergh.

    /me gets that sinking feeling he shoulda known that.

    Oh well, I'm still new with them fancy BEGIN END things. Thanks! =)