Now it gives an error...
It still gives this "error" (not, in fact, an error but a warning) because the scalar expression @fields1[1] (an array slice; see Slices in perldata) is still being used and is still better written as $fields1[1] (please see above, first sentence).
Give a man a fish: <%-(-(-(-<
In reply to Re^3: Scalar value @array better written as
by AnomalousMonk
in thread Scalar value @array better written as
by erhan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |