Cultured Perl: Fun with MP3 and Perl, Part 2
Ted writes "I continues to look at manipulating and guessing MP3 tags with Perl, FreeDB, and various CPAN models via my autotag.pl application. Writing autotag.pl was grueling but fun. I used fuzzy string matching, FreeDB searches, ID3 versions 1 and 2, and lots of text-mode user interactions. It all came together in an application that I tested thoroughly over the course of a month. Info and Slashdot comments about Part One can be seen here, which was posted in December."
Personally I'd just type " before and after pasting the filename with the spaces in.
Filenames are for humans, fix the broken software that doesn't allow filenames with spaces in.
GCHQ Quantum Insert installed. If only our tongues were made of glass, how much more careful we would be when we speak
It is a testament to the effectiveness of these various languages that just anyone can produce something useful.
t
#!/usr/local/bin/rc
for (mp3 in *.mp3) mpg123 $mp3
fails if the filename contains a space
ls -l *.mp3 | awk ' { print "%s is %d bytes\n", $9, $5 } '
fails if the filename contains a space
etc.
spaces in filenames should be illegal
There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
Software problem. Software that do not allow spaces in filenames should be illegal.
I just wish there was a way to tell them all that just because a song is a parody, doesn't necesarrily mean it was written and performend by Weird Al.
-------- In Soviet Russia, "Soviet Russia" sigs hate Slashdot.