Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^4: Perl split on regex match

by Random_Walk (Prior)
on Jan 03, 2017 at 17:36 UTC ( #1178866=note: print w/replies, xml ) Need Help??

in reply to Re^3: Perl split on regex match
in thread Perl split on regex match

That is assuming the '.' will not occur in any of the other fields.


Pereant, qui ante nos nostra dixerunt!

Replies are listed 'Best First'.
Re^5: Perl split on regex match
by GotToBTru (Prior) on Jan 03, 2017 at 18:59 UTC

    An assumption supported by all supplied test data. The #1 objection I have with my post is it continues the bad practice of not using a proper CSV module. Overkill, if the example data is truly representative of all this program will ever have to deal with, but of course that's rarely the case. Assuming only the one column will contain periods is the least of my sins.

    And, as 1nickt demonstrated, even my oversimplification could be simplified further.

    But God demonstrates His own love toward us, in that while we were yet sinners, Christ died for us. Romans 5:8 (NASB)

      Aye, an assumption supported by a rather small sample (5). I could randomly pick five humans and there is a ~1 in 16 chance that my sample would tell me there is only one gender. :-)


      Pereant, qui ante nos nostra dixerunt!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2021-04-14 18:02 GMT
Find Nodes?
    Voting Booth?

    No recent polls found