in reply to substituting capture groups substrings
$line =~ s/(\d\d)(\d\d)/$1 $2/g; [download]
Update: Note that /d and \d are different.