in reply to Turning an argument into a regexp
Just for the record, you may want to use /$regexp/i to ignore case from the command line, and play both those .MP3 and .mp3 files. Also, this line: $MP3dir = "\"" . $MP3dir . "\""; can be reduced to $MP3dir = "\"$MP3dir\""; There are other ways to quote that, also. That's just a tad more readable.sub wanted { /$regexp/ or return; }
|
|---|