perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Arnold <>
Subject Apache::File again
Date Sun, 04 Jul 2004 02:25:39 GMT

I tried to follow an earlier suggestion
but failed to figure out what to do.

I have this:

use Apache::File;

And later this:

    my $fh=Apache::File->new($r->filename);

    unless($fh) {
        $log->warn("Cannot open request - skipping ... $!");
        return Apache::DECLINED;

    # Slurp the file (hopefully it's not too big).
    my $dirty=do{local $/; <$fh>};

What modperl2 constructs should I use to establish that file handle and do
what I need to do with it? I don't want to repair the missing Apache::File,
but I want to learn the modperl2 way of doing what needs to be done here.

Report problems:
Mail list info:
List etiquette:

View raw message