in reply to Add space in long string
Another variation:
$bin = '1001100010100001';; $bin =~ s[....\K][ ]g;; print $bin;; 1001 1000 1010 0001
|
|---|
| 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 |