$linecopy=$originalLine; $linecopy=~ s/^\s+//; # remove leading spaces $length = length(originalLine)-length($linecopy);
In reply to Re: counting leading white spaces
by Anonymous Monk
in thread counting leading white spaces
by Spooky
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |