Skip to content

Instantly share code, notes, and snippets.

@nihen
Created June 28, 2010 10:33
Show Gist options
  • Save nihen/455685 to your computer and use it in GitHub Desktop.
Save nihen/455685 to your computer and use it in GitHub Desktop.
use Path::Class qw/dir/;
foreach my $path ( @{$tx->{path}} ) {
dir($path)->recurse(callback => sub {
my $file = shift;
if ( $file =~ /^$path(.*$tx->{suffix})$/ ) {
$tx->load_file($1);
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment