in reply to parse a line with varied number of fields
Can you use something like Net::SFTP instead? It can give you a list of filenames as a list, so you don't have to go parsing the lines yourself. It looks like it's been stable since before 5.8.8
In Section
Seekers of Perl Wisdom