in reply to Re: Pulling a file with a given extension
in thread Pulling a file with a given extension

Yes, I added a print statement that verified I'm getting into the correct directory, and yes, the directory has "test.dat" in it.

Still, when I run it I get "$datfile ==>" and that's it.

  • Comment on Re^2: Pulling a file with a given extension

Replies are listed 'Best First'.
Re^3: Pulling a file with a given extension
by ikegami (Patriarch) on Oct 18, 2005 at 16:08 UTC
    Do you see "test.dat" outputted when you do
    opendir DIR, '.' or die "Cannot open current dir. $!"; print("$_\n") foreach readdir DIR; closedir DIR;

    If so, I suspect the filename isn't actually "test.dat". Maybe it has a trailing space. Maybe there's some funky character in there that's not getting displayed.