chdir($dir) or die("chdir($dir): $!");
$outfile = "$album";
- for ($outfile) {
- s/\//_/g;
- s/:/_/g;
- s/'/_/g;
- s/"/_/g;
- }
+ $outfile =~ s/\//_/g;
verbose("Running flac\n");
$status = system('flac', '-o', "../$artist/$outfile.flac-tmp",
verbose("Cleaning up $dir\n");
unlink('using-tags') or die("unlink(using-tags): $!");
unlink('cue') or die("unlink(cue): $!");
- rename('toc', "../$artist/$outfile.toc")
- or die("rename(toc, ../$artist/$outfile.toc): $!");
rename('log', "../$artist/$outfile.log")
or die("rename(log, ../$artist/$outfile.log): $!");
chdir('..') or die("chdir(..): $!");