diff options
author | Matias Linares <matiaslina@openmailbox.org> | 2016-02-21 20:32:07 -0300 |
---|---|---|
committer | Matias Linares <matiaslina@openmailbox.org> | 2016-02-21 20:32:07 -0300 |
commit | 3f394b49b87654c50165768246d7321fbb0d5d3e (patch) | |
tree | 858007718fd95b2df9d673ee50c76b91c770337f /test.pl | |
parent | e1ec346da17585737f16be9f8f71425b5fe51662 (diff) | |
download | ssg-3f394b49b87654c50165768246d7321fbb0d5d3e.tar.gz |
Remove test file
Diffstat (limited to 'test.pl')
-rwxr-xr-x | test.pl | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/test.pl b/test.pl deleted file mode 100755 index 363f870..0000000 --- a/test.pl +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/perl -use strict; -use warnings; - -use Path::Class; - -sub trans { - my ($dir, $cb) = @_; - - while(my $file = $dir->next) { - my $outfile = $file->stringify; - - # Some conditions - next if $outfile =~ /(\.|\.\.)$/; - next if $outfile eq $dir; - - if($file->is_dir()) { - # make a directory - trans($file, $cb); - next; - } - - $cb->($file); - } -} - -sub some { - my ($f) = @_; - - die "f is empty" if !$f; - - print "Inside some: $f\n"; -} - -trans dir("in"), \&some; |