in reply to Re^3: How can I replace space sequences in a string with the number of spaces in each sequence?
in thread How can I replace space sequences in a string with the number of spaces in each sequence?
my $fen=join('/', map { $_=~s/( +)/length $1/ge; $_; } $self->{rep}=~/.{8}/g );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How can I replace space sequences in a string with the number of spaces in each sequence?
by LanX (Saint) on Feb 04, 2015 at 16:00 UTC |