Also sprach Ian Beckwith:
It is probably better placed under the AudioFile:: namespace. Your> I've written a perl module to handle parsing and creation of filenames
> containing music metadata. For instance, with the default
> configuration, given a filename like:
> 01 - Talk Talk - Spirit of Eden - The Rainbow.mp3
> methods called artist(), album(), etc. return the correct information.
> Given the metadata, it can also construct a filename.
> At the moment, it lives under MP3::Archive. Is this namespace
module is not MP3-specific. I suppose it could equally well be applied
to .ogg files for instance.
I don't like the Archive bit very much either. The name should make> It could be considered slightly misleading, as within the context of
> CPAN, Archive (at least within the Archive:: namespace) means files
> containing collections of files (zip, tar, etc) rather than an
> organised filesystem tree of files. Also, it works with other audio
> formats, not just mp3 (in fact the contents of the file are irrelevant).
clear that it somehow deals with filenames. It's not easy to come up
with a short name that it makes it clear, though.
Maybe something for a later release: it would be nice if the module> So, any better suggestions? I should have asked this before finishing
> coding, but it shouldn't be too much hassle to change.
> The module is generic enough for me to have used it in several scripts
> of varying sizes (the biggest, mp3lint, uses the MP3::Archive::Lint
> namespace). So, is it worth uploading to CPAN and registering it with
> the module list?
> The code is at
> It also has links to the scripts that use it.
> Comments welcome.
could fill in the tags of the audiofile according to the information it
was able to extract from the filename (and vice versa).