my ($x, $y) = $s =~ /^(.*?)0(.*)/s; -or- my ($x, $y) = $s =~ /^([^0]+)0(.*)/s; [download]
In reply to Re: Split on first of several by ikegami in thread Split on first of several by Anonymous Monk