in reply to Add space in long string

Another variation:

$bin = '1001100010100001';; $bin =~ s[....\K][ ]g;; print $bin;; 1001 1000 1010 0001

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^2: Add space in long string
by Lotus1 (Vicar) on May 28, 2013 at 13:34 UTC
Re^2: Add space in long string
by lddzjwwy (Novice) on May 28, 2013 at 12:38 UTC
    Thanks a lot bro! Already got it!