http://qs1969.pair.com?node_id=1193326


in reply to Re^3: Find the last item in a series of files
in thread Find the last item in a series of files

Yes, File::Basename is a fine idea. But that won't get you out of providing a regex in this particular situation. The functions either take a list of strings like ".txt". ".doc". Or a regex in qr// form. Of course the enumerated suffix strings are the easiest way to use these functions. However, in this particular situation with varying numeric suffixes, ".001", etc., I would think a regex is needed even if using File::Basename.