Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to split versus =~

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.

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11148113]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-23 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found