in reply to Re^3: Regex to array
in thread Regex to array
See List value constructors in perldataperldata! Thanks!
but if you're assigning from an array or list, it's usually more sane to use some kind of slice rather than fooling around with undef.Why? To make a slice in this case you'd need to know in advance how many matches there will be, or first store the output in an array and then slice away the first element. It's doable and understandable, but I don't see how skipping a value with undef is less sane.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Regex to array
by AnomalousMonk (Archbishop) on Jan 09, 2018 at 18:49 UTC | |
by Eily (Monsignor) on Jan 10, 2018 at 09:20 UTC |