aboutsummaryrefslogtreecommitdiff
path: root/test.pl
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@openmailbox.org>2016-02-21 20:32:07 -0300
committerMatias Linares <matiaslina@openmailbox.org>2016-02-21 20:32:07 -0300
commit3f394b49b87654c50165768246d7321fbb0d5d3e (patch)
tree858007718fd95b2df9d673ee50c76b91c770337f /test.pl
parente1ec346da17585737f16be9f8f71425b5fe51662 (diff)
downloadssg-3f394b49b87654c50165768246d7321fbb0d5d3e.tar.gz
Remove test file
Diffstat (limited to 'test.pl')
-rwxr-xr-xtest.pl35
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;