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.
in thread A Better Way to Find the Position of the Last Non-Whitespace Character in the Last Element of an Array.

Aaah, I missed that qualification (got stuck on the specific example). $idx = $+[1] if $MessageLines[-1]=~/(\S)\s*$/ then.

The cake is a lie.
The cake is a lie.
The cake is a lie.

  • Comment on Re^3: A Better Way to Find the Position of the Last Non-Whitespace Character in the Last Element of an Array.
  • Download Code