Last active
November 1, 2018 14:49
-
-
Save zhanglintc/23e0d67b3a2517e008e155b53a647751 to your computer and use it in GitHub Desktop.
traverse a given dir(wanted version)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use 5.016; | |
use File::Find; | |
find(\&wanted, $target); | |
sub wanted { | |
my $path = $File::Find::name; | |
say $path; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment