in reply to Variable declaration on one line
Sure it can be done, but you need to enclose them in parentheses. When you don't put the parens, you get the equivalent of
my ($varOne), $varTwo, @varArray, $varThree;
Again, the proper way is:
my ($varOne, $varTwo, @varArray, $varThree);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Variable declaration on one line
by Anonymous Monk on Jan 28, 2004 at 15:44 UTC | |
by inman (Curate) on Jan 28, 2004 at 15:57 UTC | |
by monktim (Friar) on Jan 28, 2004 at 16:00 UTC | |
by Anonymous Monk on Jan 28, 2004 at 17:16 UTC |