OurNet-BBS

 view release on metacpan or  search on metacpan

lib/OurNet/BBS/Utils.pm  view on Meta::CPAN

	}
    }, $dir) if -d $dir;

    rmdir $dir;
}

sub locate {
    my ($file, $path) = @_;

    unless ($path) {
	$path = (caller)[0];
	$path =~ s|::\w+$||;
    }

    $path =~ s|::|/|g;

    unless (-e $file) {
	foreach my $inc (@INC) {
	    last if -e ($file = join('/', $inc, $_[0]));
	    last if -e ($file = join('/', $inc, $path, $_[0]));
	}



( run in 1.565 second using v1.01-cache-2.11-cpan-a3c8064c92c )