> i have a regex that checks for a string in a param, if not 
> found, it should jump to an error subroutine.  from there, i 
> print out "this is an error", etc.  after that prints, unless 
> i have an "exit" to stop the processing, the sub jumps back 
> and prints out what i don't want it to.  how can i end the 
> cgi at that point without calling exit?

Can you post your code please?

Sounds like:

FILE: while(<FILE>) {
  if($line =~ /somestring/i) {
    # do stuff
  } else {
    error_msg('somestring not found');
    next FILE;
  }
  # do more stuff
}

HTH,

 -dave



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to