in reply to Re: Get Filename using perl
in thread Get Filename using perl

readdir returns the names of files, not their contents, so you're actually searching for files whose name matchs your keyword.