perldoc -f index$line = " This is the test line"; if( $line =~ /(\S)/ ){ # match first non-space character print index($line, $1),"\n"; # find index } __END__
In reply to Re: find the starting character position in a line
by Anonymous Monk
in thread find the starting character position in a line
by hifirock
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |