or if you're allergic to line endings:$line =~ m/^(\s*)/; print length $1;
print length [$line =~ m/^(\s*)/]->[0];
--
use JAPH;
print JAPH::asString();
In reply to Re: find the starting character position in a line
by wol
in thread find the starting character position in a line
by hifirock
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |