Perl Monk, Perl Meditation | |
PerlMonks |
Re: Detecting if a folder is a symbolic linkby merlyn (Sage) |
on Mar 17, 2006 at 23:16 UTC ( [id://537610]=note: print w/replies, xml ) | Need Help?? |
To avoid duplicates, you can sidestep the symlink issue (because any given file might also be a symlink) by stat'ing everything you process and rejecting anything where the dev/inode pair is the same. In other words:
-- Randal L. Schwartz, Perl hacker
In Section
Seekers of Perl Wisdom
|
|