develooper Front page | perl.perl5.porters | Postings from March 2006

Re: [perl #38790] readdir() only returns one result when used

Thread Previous | Thread Next
John E. Malmberg
March 23, 2006 20:03
Re: [perl #38790] readdir() only returns one result when used
Message ID:
Rafael Garcia-Suarez wrote:
> Joshua ben Jore wrote:
>>So hardcode the exceptions. They're well established and limited.
>>Heck, for readdir(), if it returned an empty list/undef, why isn't $!
>>being examined to decide failure? It isn't that failure is
>>undetectable, it just isn't a case of looking at the return value
>>because any of empty/false/undef/-1/0 are possible as non-error
> Not sure, I think all directories have always at least one entries.
> At least on Unixes.

OpenVMS directories can be empty and frequently are.

Personal Opinion Only

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About