Re: Should a dirhandle be a filehandle-like iterator?

2007-04-14 Thread Smylers
Jonathan Lang writes: > Also: why distinguish between "open" and "opendir"? If the string is > the name of a file, 'open' means "open the file"; if it is the name of > a directory, 'open' means "open the directory". Many programs open a file from a name specified by the user. Even if C existed,

Re: Should a dirhandle be a filehandle-like iterator?

2007-04-14 Thread Steve Peters
On Fri, Apr 13, 2007 at 07:43:23PM -0500, brian d foy wrote: > As I was playing around with dirhandles, I thought "What if..." (which > is actualy sorta fun to do in Pugs, where Perl 5 has everything > documented somewhere even if nobody has read it). > > My goal is modest: explain fewer things in