Hi,
When there are only two (or three) I sometimes write:
my $foo = my $bar = my $baz = 1;
(But don't use the variable names $a and $b -- they are special in Perl. $x, $y, $z is a good alternative, or even better, use descriptive names.)
Hope this helps !
In reply to Re: Initialisation of variables
by 1nickt
in thread Initialisation of variables
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |