Use index:
my $str = 'this is some text'; print index $str, 'o'; __END__ 9
--
David Serrano
In reply to Re: Displaying the column number when reading a file
by Hue-Bond
in thread Displaying the column number when reading a file
by rsriram
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |