in reply to Back ticks Win95 vs. WinNT
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...
Note that opendir doesn't care about OS specific directory separators.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;
"The future will be better tomorrow."
|
|---|