in reply to How not to remove trailing empty strings from an array

the problem comes from ...

I thought

"" eq $arr[-1]
could solve this, but no chance.

Cheers Rolf

( addicted to the Perl Programming Language)