in reply to Back ticks Win95 vs. WinNT

You don't need to escape the directory with \ if you use single 's. That turns off the " interpolation which can be annoying.

Win95 and NT dir output sound as though they behave differently. It may be more portable with opendir and readdir - try and avoid the dir command or other system calls on Win95 - not portable.

Code adapted from perldoc -f readdir...

my $some_dir = 'c:/temp'; opendir(DIR, $some_dir) || die "can't opendir $some_dir: $!"; my @dots = readdir(DIR); closedir DIR; print "Linha: $_\n" for @dots;
Note that opendir doesn't care about OS specific directory separators.

"The future will be better tomorrow."