Let the RE engine do the work. (You can make this simpiler if you don't worry about lines with more then 32k blanks at the start: $s=~s/^ *//mg;.)my $lim = 32700; $s=~s/^ {1,$lim}//mg while ($s=~/^ /);
In reply to Re: Remove leading spaces (left justify)
by theorbtwo
in thread Remove leading spaces (left justify)
by eyepopslikeamosquito
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |