Lufs
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/Lufs.pm view on Meta::CPAN
sub _init {
my $self = shift;
my $opt = pop;
my ($f, $class) = ($opt->{host}, $opt->{host});
$f =~ s{\.}{/}g;$f .= '.pm';
$class =~ s{\.}{::}g;
eval "require '$f'";
if ($@) { warn "cannot load class: $@"; return 0 }
eval 'push @'.$class."::ISA, 'Lufs::Glue'";
$self->{fs} = bless {} => $class;
$opt->{logfile} ||= '/tmp/perlfs.log';
open(STDERR, ">> $opt->{logfile}") if $opt->{logfile};
$Lufs::Glue::trace = 1 if $opt->{logfile};
$self->{fs}->init($opt);
}
sub AUTOLOAD {
my $self = shift;
my $method = (split/::/,$AUTOLOAD)[-1];
$method eq 'DESTROY' && return;
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.490 second using v1.00-cache-2.02-grep-82fe00e-cpan-a086c87fca4 )