Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: split giving me a splitting headache

by bart (Canon)
on Apr 24, 2013 at 19:21 UTC ( #1030491=note: print w/ replies, xml ) Need Help??


in reply to split giving me a splitting headache

/.*/ is greedy. So all you have to do is

($x, $y) = /(.*)\.(.*)/;
and Bob's your uncle. Unless there is no period. You'll have to handle that case separately.


Comment on Re: split giving me a splitting headache
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (17)
As of 2015-07-29 16:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (265 votes), past polls