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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Find the last item in a series of files
by CountZero (Bishop) on Jun 24, 2017 at 08:16 UTC |
In Section
Seekers of Perl Wisdom