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]