in reply to Assign multiple scalars the same value
For comleteness' sake, you can also do the following:
$_ = "TRUE" for my ( $a, $b, $c );
That my declaration is actually not restricted to the loop, the variables are available down the block this statement appears in. That will probably surprise most readers of your code, though, so you don't actually want to use it in practice.
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Assign multiple scalars the same value
by greenFox (Vicar) on Jan 25, 2005 at 02:17 UTC |