Gack, you Perl Lords once again save my butt. Thanks Roberto, it worked like a charm.
-----Original Message----- From: Kevin Meltzer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 7:30 AM To: Roberto Ruiz Cc: Camilo Gonzalez; [EMAIL PROTECTED] Subject: Re: Counter and scoping(?) issue On Wed, May 29, 2002 at 03:05:36AM -0500, Roberto Ruiz ([EMAIL PROTECTED]) said something similar to: > Hi, God bless you. > > On Tue, May 28, 2002 at 12:45:53PM -0500, Camilo Gonzalez wrote: > > if ( $confirm_counter = "1"){ > ^ May be this your problem? > > In the indicated if condition below you are allways assigning 1 to > $confirm_counter instead of comparing it to 1. Should be: > > if($confirm_counter=="1") { > ... > } > You don't need the quotes if you are doing a numeric check. if($confirm_counter == 1) { ... } Cheers, Kevin -- [Writing CGI Applications with Perl - http://perlcgi-book.com] Down that path lies madness. On the other hand, the road to hell is paved with melting snowballs. --Larry Wall in <[EMAIL PROTECTED]> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]