http://qs321.pair.com?node_id=1178869


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

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)

Replies are listed 'Best First'.
Re^6: Perl split on regex match
by Random_Walk (Prior) on Jan 04, 2017 at 13:44 UTC

    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. :-)

    Cheers,
    R.

    Pereant, qui ante nos nostra dixerunt!