in reply to Re^4: 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/ger } $input =~ /.{8}/g;
|
|---|