Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Add space in long stringby jethro (Monsignor) |
on May 28, 2013 at 12:20 UTC ( [id://1035580]=note: print w/replies, xml ) | Need Help?? |
$bin=~s/(\d{4})/$1 /g
Don't ask what happens if the length of your bin string isn't divisible by 4 ;-)
In Section
Seekers of Perl Wisdom
|
|