Zenzizenzizenzic has asked for the wisdom of the Perl Monks concerning the following question:
Since the $var1 is declared twice, use warnings; flags it. I assume the latter instance will be the one kept, but is this correct? Thank youmy ($var1, $var2, $var3, $var1) = someFunction($var4);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Duplicate variable returned from sub
by Your Mother (Archbishop) on Sep 23, 2019 at 16:59 UTC | |
by Zenzizenzizenzic (Pilgrim) on Sep 23, 2019 at 17:05 UTC | |
by Perlbotics (Archbishop) on Sep 23, 2019 at 17:12 UTC | |
by Zenzizenzizenzic (Pilgrim) on Sep 23, 2019 at 17:17 UTC | |
by AnomalousMonk (Archbishop) on Sep 23, 2019 at 22:07 UTC | |
|
Re: Duplicate variable returned from sub
by BillKSmith (Monsignor) on Sep 23, 2019 at 19:21 UTC | |
by Zenzizenzizenzic (Pilgrim) on Sep 23, 2019 at 21:01 UTC |