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