Note that for your particular case,$var = ($var =~ s/\n//gr) =~ s/\s+//gr;
will do, as newlines are whitespace.$var =~ s/\s+//g;
In reply to Re: Perl RegEx
by JavaFan
in thread Reaped: Perl RegEx
by NodeReaper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |