in reply to Is readdir ever deterministic?
I'm not qualified to comment on the variations among systems or the lack of determinism, but as far as coding defensively, you could just put a filter on the files with grep :
foreach my $file ( grep { !/^\.{1,2}$/ } readdir DIR ) { munge($file); }
perl -e 'print "How sweet does a rose smell? "; chomp ($n = <STDIN>); +$rose = "smells sweet to degree $n"; *other_name = *rose; print "$oth +er_name\n"'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Is readdir ever deterministic?
by merlyn (Sage) on Sep 18, 2001 at 01:25 UTC |