Jonathan Peterson wrote:
> Oh, and I think the thing about readdir returning the first
> entry of an array in scalar context is dumb. That isn't DWIM.
> Returning the number of entries in the directory would be
> about a million times more sensible (especially if it didn't
> count . and .. as entries).
Next you'll be saying that <> in scalar context should return the number of
lines in the file.
Cheers,
Phi "while($file = readdir BLA) { process($file) }" lip
--
Philip Newton <[EMAIL PROTECTED]>
All opinions are my own, not my employer's.
If you're not part of the solution, you're part of the precipitate.