I'm trying to shorten all multiple spaces to one space, except for the first occurence of spaces (indentation).
I've found that this code will replace the first occurences:
$_ =~ s/^ +/ /;
So I thought, its negation will do what I want. But it does not:
$_ =~ s/!^ +/ /g;
What am I doing wrong?