Felix Thanks! That was just what i needed:)
thia --- Felix Geerinckx <[EMAIL PROTECTED]> wrote: > on Fri, 30 Aug 2002 13:58:47 GMT, [EMAIL PROTECTED] (T) wrote: > > > "Global symbol "$auto" requires explicit package name" > > [...] > > > if ($Country eq "Argentina") > > {my $auto = $q->param( '[EMAIL PROTECTED]' ); > > } > > and > > if ($Country eq "Argentina") > > {$auto = $q->param( '[EMAIL PROTECTED]' ); > > } > > > > A lexical my declaration is only visible in the enclosing block. > > You should write: > > my $auto; > if ($Country eq "Argentina") { > $auto = $q->param( '[EMAIL PROTECTED]' ); > } > > See M-J. Dominus' "Coping with Scoping" article for an excellent > introduction to scoping at > > <http://perl.plover.com/FAQs/Namespaces.html> > > -- > felix > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]