On Mon, Nov 03, 2003 at 11:16:02PM -0000, Rob Dixon wrote:
> Steve Grazzini wrote:
> >
> > On Mon, Nov 03, 2003 at 09:48:55AM -0000, Rob Dixon wrote:
> > > Steve Grazzini wrote:
> > > > That's fine if you *want* to skip the dotfiles.  But you *always*
> > > > skip "." and "..".  More robust code will also check for cycles, but
> > > > since File::Find does all this already, it's usually better just to
> > > > use the module.
> > >
> > > Cycles are eliminated by discarding links and printing only directories
> > > and regular files.
> >
> > The problem is that "-d $path" will return true if $path is a symlink
> > to a directory.
> 
> Thanks Steve, but are you certain? I can't test it here. As far
> as I know this behaviour isn't documented anywhere.
> 
> Anybody?

Steve is right (just for a change).  I don't know that this is
documented anywhere specifically.  Possibly the closest is in perldoc -f
stat (at the end on recent perls) and man 2 stat (on systems that have
that).

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to