in reply to substituting capture groups substrings

The trick is to split the numbers already when capturing:
$line =~ s/(\d\d)(\d\d)/$1 $2/g;

Update: Note that /d and \d are different.

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ