BEGIN { my %seen; sub process { my $entry = shift; my ($dev, $ino) = stat $entry or return; $seen{"$dev $ino"}++ or return; ... rest of processing ... } }
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to Re: Detecting if a folder is a symbolic link
by merlyn
in thread Detecting if a folder is a symbolic link
by ralphch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |