Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: split giving me a splitting headache

by toolic (Bishop)
on Apr 24, 2013 at 18:37 UTC ( #1030480=note: print w/replies, xml ) Need Help??


in reply to split giving me a splitting headache

Then don't use split:
use warnings; use strict; my $str = "x.z.y"; my ($first, $second) = $str =~ /(.+)\.([^.]+)$/; print "$first,$second\n"; __END__ x.z,y

Replies are listed 'Best First'.
Re^2: split giving me a splitting headache
by Anonymous Monk on Apr 24, 2013 at 18:40 UTC
    Good point. Thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1030480]
help
Chatterbox?
[NetWallah]: /stevieb I dont understand - the poster had a very legitimate issue, and expressed it clearly. WHat did you have a problem with?

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2017-02-23 14:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (347 votes). Check out past polls.