Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: split versus =~by talexb (Chancellor) |
on Nov 10, 2022 at 18:19 UTC ( [id://11148113]=note: print w/replies, xml ) | Need Help?? |
You've already got plenty of answers here, but I recommend the thing you take away from this discussion is "I dunno -- let's write a test to check out all of the possible inputs and all of the corresponding outputs that we expect to see." That way, when someone says, "I'm not sure it's working correctly" about your code, you can pull out your tests, and see whether you've covered that already. There should always be tests.
In Section
Seekers of Perl Wisdom
|
|