in reply to Add space in long string
$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
in reply to Add space in long string
Don't ask what happens if the length of your bin string isn't divisible by 4 ;-)