my $pos_of_nl = rindex $str, "\n", 10-1;
(whether it's 10-1, 10-2 etc. depends on how exactly you're counting... feel free to finetune)
In reply to Re: How to find out a character position ?
by almut
in thread How to find out a character position ?
by balakrishnan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |