my $fen= join '/', map { s/( +)/length $1/ger } $input =~ /.{8}/g;
In reply to Re^5: How can I replace space sequences in a string with the number of spaces in each sequence?
by LanX
in thread How can I replace space sequences in a string with the number of spaces in each sequence?
by tkguifan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |