$MessageLines[-1] =~ m/^.*\S/sg; my $CursorCol = pos $MessageLines[-1];
In reply to Re^2: A Better Way to Find the Position of the Last Non-Whitespace Character in the Last Element of an Array.
by roubi
in thread A Better Way to Find the Position of the Last Non-Whitespace Character in the Last Element of an Array.
by NateTut
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |