in reply to Re: A list assignment gotcha (updated)
in thread Not understanding 2 sentences in perldoc
Exactly — they look analogous, but they are not. The List::MoreUtils tricks are interesting, but actually wrap a loop iterating over arrays instead of being a true "vectorized" modifying assignment. There is probably something in PDL for this if your program does that kind of processing, but for a simple case with a list of Perl scalars, you need to use multiple statements.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: A list assignment gotcha (updated)
by etj (Priest) on Apr 21, 2022 at 07:26 UTC |