Flux-File

 view release on metacpan or  search on metacpan

lib/Flux/File.pm  view on Meta::CPAN

sub in {
    my $self = shift;
    my ($posfile) = validate_pos(@_, SCALAR);

    return Flux::File::In->new(cursor => Flux::File::Cursor->new(posfile => $posfile), file => $self->file);
}

sub owner {
    my ($self) = @_;
    if (-e $self->file) {
        return scalar getpwuid( (stat($self->file))[4] );
    }
    else {
        return scalar getpwuid($>);
    }
}


1;

__END__

=pod



( run in 0.274 second using v1.01-cache-2.11-cpan-8d75d55dd25 )