http://www.perlmonks.org?node_id=507311


in reply to split and join

Hi, Can anyone tell me how to split the data {"0.7591.4166.6352.6465.4574.1653.833"} into {"0.759","1.416","6.635","2.646","5.457","4.165","3.833"} Thanks in advance.

Replies are listed 'Best First'.
Re^2: split and join
by ysth (Canon) on Nov 10, 2005 at 09:36 UTC
    $data = "0.7591.4166.6352.6465.4574.1653.833"; @data = $data =~ /\d\.\d\d\d/g;