in reply to Re: Debugging Aid
in thread Debugging Aid

I've used the Start tag mainly to prevent an error. If you take a look at the line that says:
unlink "debug.log" or goto Start
You'll see that if the debug.log file doesn't exist, the script goes to the Start tag, instead of generating an error.

Er Galvão Abbott
a.k.a. Lobo, DaWolf
Webdeveloper

Replies are listed 'Best First'.
Re: Re: Re: Debugging Aid
by rinceWind (Monsignor) on Apr 13, 2002 at 09:40 UTC
    DaWolf, unlink will not error unless you tell it to. So, your default behaviour is to continue running the program as if nothing happened.

    Both goto Starts are redundant, as is the Start: label.

      Thanks.

      I didn't knew that unlink wont return an error if the file is not found.

      Er Galvão Abbott
      a.k.a. Lobo, DaWolf
      Webdeveloper