Updated to simplify regex as suggested by hdbmy $txt = join ' ',@first_sentence; $txt =~ s/\s*([.()])\s*/$1/g; print $txt;
In reply to Re^3: remove spaces after join operation
by Loops
in thread remove spaces after join operation
by lakssreedhar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |