Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Is readdir ever deterministic?

by merlyn (Sage)
on Sep 18, 2001 at 01:25 UTC ( #112972=note: print w/replies, xml ) Need Help??


in reply to Re: Is readdir ever deterministic?
in thread Is readdir ever deterministic?

Well, being truly defensive, you should have written:
foreach my $file ( grep { !/\A\.{1,2}\z/ } readdir DIR ) { munge($file); }
Or else the day someone creates a file named dot-newline or dotdot-newline, you'll be very angry.

-- Randal L. Schwartz, Perl hacker

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://112972]
help
Chatterbox?
[ambrus]: We're not really sure. There are some other contenders like libjpeg, and it's not easy to tell how you even measure this.
[ambrus]: But we figured it's close.
[Corion]: If you take Android as the baseline, that makes all three a likely contender
[choroba]: 22 points until level 22

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2017-09-25 14:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (280 votes). Check out past polls.

    Notices?