http://www.perlmonks.org?node_id=979364


in reply to Re^2: M3U Playlist Generator
in thread M3U Playlist Generator

Below is my rewritten version which does not depend on File::Find

Why?

Because I cannot understand the documentation. I'll take a look at your example and keep playing. Thanks!

$inpath can be file ( use -f or -d inestead of -e, since both -f and -d imply -exist )

Good point! -d would be best because the $inpath should be a directory.

$inpath could contain glob metacharacters

Doh! I did not even think of that ... because on my system it will not!

3 argument open is better than two

Old habits are hard to break.

Thanks! Your comments have been very helpful.