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


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