Skip Menu |

This queue is for tickets about the String-MFN CPAN distribution.

Report information
The Basics
Id: 15557
Status: rejected
Priority: 0/
Queue: String-MFN

People
Owner: mdxi [...] cpan.org
Requestors: bda [...] mirrorshades.net
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Munging number sequeneces in filenames
Use case: Directory with: file_1 file_2 file_3 ... file_10 What we really want is file_01 file_02 ... This would have to be smart enough to deal with arbitrarily sized (and possibly named) number lengths, though. file_1 .. file_154087; giving you file_000001.
Since I finally decided that String::MFN was due an update, I've also decided to address this issue. This is not a String::MFN issue. The job of String::MFN is only to produce strings which are (or resemble) valid and sane Unix filenames. It normalizes strings within that context, and within that context only. It does not (and cannot) know how to "normalize" a series of strings which may represent actual filenames with sequential "parts". Realizing this, I have removed even the small amount of support that S::MFN had for trying to recognize track numbers in filenames -- that, too, is an application domain problem. Luckily, S::MFN comes bundled with an application, mfn(1p), which will resolve this request in the near future.