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


in reply to Require input reading files recursively in perl

readdir returns file names, not paths. To really access the file (as in opendir), you have to prepend the path to the file name.

Update: My comment is irrelevant to the problem. I was not able read the code properly because it was placed in the signature part of the post which renders without syntax highlighting and other bells and whistles I am accustomed to.

لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ