I am sure that when you re-read the code which you have presented here you will realise at once that it is not an SSCCE. That is a shame for you because the problem (if indeed there actually is one) is in the code which you have chosen not to show us.
Here is the sort of thing which you should have provided. Note that this demonstrates that the syntax in the 2 lines which you have shown works perfectly well.
#!/usr/bin/env perl use strict; use warnings; use File::Find; use Path::Tiny; # Construct the tree my $dir = path('quux'); my $file = $dir->child('baz')->touchpath; link $file, $dir->child($_) for qw/foo bar/; # Run the iterator find ({wanted => sub { print "found $_\n" }, follow => 1}, $dir); # Clean up $dir->remove_tree;
🦛
In reply to Re^3: find () command does not process all symlinks
by hippo
in thread find () command does not process all symlinks
by ypreisler
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |