In a script I have the following line:
# --------------------------------------------------------
local (%in) = &parse_form;Now, I would like to have local (%in) = &parse_form_adv if my var $browser is true. I saw the following code somehere, but it uses my. Can I just change my into local?
my %FORM;
if($browser eq "true") {
%FORM = &parse_form;
}
else {
%FORM = &parse_form_adv;
}
Code:
sub main { # --------------------------------------------------------
local (%in) = &parse_form;
Code:
my %FORM;
if($browser eq "true") {
%FORM = &parse_form;
}
else {
%FORM = &parse_form_adv;
}