in reply to Skipping array element in a loop
open FH, "<$mp3" or die "Could not open file $mp3\n"; binmode FH; seek (FH, -128, 2); read (FH, $tag, 128); next if $tag !~ /^TAG/;
This is using the fact that the ID3V1 tag has the word TAG at the begging of said tag. If you're working with ID3V2 tags, I'd look at using one of the Mp3 modules from CPAN.
|
|---|