I am new to Perl. I was wondering whether it is possible to do something like below:
$var =~ s/\n//g =~ s/\s+//g;
Basically I want to perform one search n replace operation on a variable, another search and replace on the result of previous operation and so on...
Above syntax doesn't work. Is there any apparent work around generally being practiced?
Thanks in advance.