From 7d56ee20dd19a764ff301f4abffaf855b90262f4 Mon Sep 17 00:00:00 2001 From: epg <> Date: Mon, 30 Aug 2004 02:22:54 +0000 Subject: [PATCH] (flac2mp3): Use for "loop" for s/// filename sanitization. --- flac2mp3 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/flac2mp3 b/flac2mp3 index 2231b1f..a4d3fdc 100755 --- a/flac2mp3 +++ b/flac2mp3 @@ -107,10 +107,12 @@ sub flac2mp3 { my $until_arg = shift; my $outfile = sprintf("$artist ($album) \%02s $title.mp3", $track); - $outfile =~ s/\//_/g; - $outfile =~ s/:/_/g; - $outfile =~ s/'/_/g; - $outfile =~ s/"/_/g; + for ($outfile) { + s/\//_/g; + s/:/_/g; + s/'/_/g; + s/"/_/g; + } # XXX $until_arg ||= ''; -- 2.56.0