Wibble has asked for the wisdom of the Perl Monks concerning the following question:
But this isn't and gives an error:local ($a=1, $b=2, $c=3);
The following is what I would normally use myself:my ($a=1, $b=2, $c=3);
I have seen the first construct used in someone else's code, but I'm not sure if it is a Perl crime or not - anyone know?my ($a, $b, $c) = (1,2,3);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Embedded variable assignments inside local declarations
by broquaint (Abbot) on Jan 26, 2003 at 17:03 UTC | |
|
•Re: Embedded variable assignments inside local declarations
by merlyn (Sage) on Jan 26, 2003 at 17:07 UTC | |
by pg (Canon) on Jan 26, 2003 at 19:39 UTC | |
|
Re: Embedded variable assignments inside local declarations
by integral (Hermit) on Jan 28, 2003 at 19:55 UTC |