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


in reply to Re^4: Doubt regarding parsing
in thread Doubt regarding parsing

pavanpvss sometimes you are not in the directory that you thought you were in. Try adding the following line to your code and run it before the 'my $filename' line.

map { print $_ . "\n" } <C:\*>;

Then check the output for your file. (note the similarities of the C:\ to your filename call).