NAME
Mojo::File - File
SYNOPSIS
use Mojo::File;
my $file = Mojo::File->new('Hello!');
$file->add_chunk('World!');
print $file->slurp;
DESCRIPTION
Mojo::File is a container for files.
ATTRIBUTES
my $cleanup = $file->cleanup;
$file = $file->cleanup(1);
handle
my $handle = $file->handle;
$file = $file->handle(IO::File->new);
file_length
my $file_length = $file->file_length;
$file = $file->file_length(9000);
file_name
my $file_name = $file->file_name;
$file = $file->file_name(9000);
METHODS
Mojo::File inherits all methods from Mojo::Base and implements the following new ones.
new
my $file = Mojo::File->new('Hello World!');
add_chunk
$file = $file->add_chunk('test 123');
contains
my $contains = $file->contains('random string');
get_chunk
my $chunk = $file->get_chunk($offset);
slurp
my $string = $file->slurp;
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 183:
Unknown directive: =head