in reply to Re^2: Reading DIR content and printing it
in thread Reading DIR content and printing it

check for errors:
open file, "< readfile.txt" or die "Unable open file: $!";