http://www.perlmonks.org?node_id=1028926


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

Close, but subtly different (imho), it