I'm writing a script to check for validity of form elements.  here's what I
have so far:

my ($job) = $cgi->param("job");

bla bla bla more script bla bla bla


sub fixFailed
{       my (@failedFields);
        my ($validForm)="1";
        
        #validate job selection
        if (!$job) {
                $job="job ";
                push (@failedFields, $job);
                
                }



my question is, I remember someone a while back mentioning that you should
NOT redefine global variables in your subroutines... what can I do as an
alternative?  what do I risk by doing it anyways?





`°º¤,ô¿ô,¤º°``°º¤,ô¿ô,¤º°``°º¤,ô¿ô,¤º°``°º

Stephanie J. Stiavetti
Production Tools
Industrial Light + Magic
415-448-3213 <-|-> [EMAIL PROTECTED]

`°º¤,ô¿ô,¤º°``°º¤,ô¿ô,¤º°``°º¤,ô¿ô,¤º°``°º

And then the day came when the risk to 
stay tight in a bud became more painful 
than the risk it took to blossom.  
       --Anais Nin

`°º¤,ô¿ô,¤º°``°º¤,ô¿ô,¤º°``°º¤,ô¿ô,¤º°``°º

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

Reply via email to