Guest User

Untitled

a guest
May 26th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #!/usr/bin/perl -w
  2.  
  3. use strict;
  4. use warnings;
  5.  
  6. use feature qw/say/;
  7.  
  8. sub search($) {
  9. my $path = shift;
  10.  
  11. say "Path: $path";
  12.  
  13. for my $file (glob($path.'/*')) {
  14. -d $file ? &search($file) : say "\t$file";
  15. }
  16. }
  17.  
  18. map {search($_)} grep +(-d $_), <*>;
Add Comment
Please, Sign In to add comment