in reply to split giving me a splitting headache
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 |