Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/perl -w
- use strict;
- use warnings;
- use feature qw/say/;
- sub search($) {
- my $path = shift;
- say "Path: $path";
- for my $file (glob($path.'/*')) {
- -d $file ? &search($file) : say "\t$file";
- }
- }
- map {search($_)} grep +(-d $_), <*>;
Add Comment
Please, Sign In to add comment