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