more useful options | |
PerlMonks |
Re^2: Mystery interaction between split and gobbling arraysby saintmike (Vicar) |
on Jun 17, 2015 at 23:12 UTC ( [id://1130901]=note: print w/replies, xml ) | Need Help?? |
Wow, nice find, thanks for that. I'm pretty sure that setting the limit to 4 in the first case saves some cpu cycles, but setting it to 0 in the second case is pretty crazy, given the special behavior of split() in this case.
Here's one more: What's the difference between and when $str = "foo:bar:"? Spoiler: Adding @options to the left hand side makes $c undef'd!
In Section
Seekers of Perl Wisdom
|
|