in reply to commented out s/// prevents script running!

You are using Switch.pm, which has to parse your source code. And obviously, Switch is thrown off by some stuff you commented out. Don't use Switch or other modules that reparse your source code when commenting out other code inside it.

  • Comment on Re: commented out s/// prevents script running!

Replies are listed 'Best First'.
Re: Re: commented out s/// prevents script running!
by Anonymous Monk on Mar 03, 2004 at 11:08 UTC
    Thanks for the replies; The block at the end is only commented out becasue I have been trying to isolate my problem. You can uncomment the entire while loop, put the correct end-brace in position and re-instate the original conditional for the while loop, but I still get the same problem, .. so, I dont think having commented code inside my switch is causing it. I have double checked, triple, quadruple checked the {}'s and '' 's and ""'s all is fine. The error I get on running the script WITH the #s/// line is; syntax error at tsm_processjob.cgi line 233, near "}continue" syntax error at tsm_processjob.cgi line 235, near "}"