NAME
Archive::Cpio - module for manipulations of cpio archives
SYNOPSIS
use Archive::Cpio;
# simple example removing entry "foo"
while (my $e = Archive::Cpio::read_one(\*STDIN)) {
if ($e->{name} ne 'foo') {
Archive::Cpio::write_one(\*STDOUT, $e);
}
}
Archive::Cpio::write_trailer(\*STDOUT);
DESCRIPTION
Archive::Cpio provides a few functions to read and write cpio files.
Archive::Cpio::read_all($filehandle)
Returns a list of entries
Archive::Cpio::write_all($filehandle, $list_ref)
Writes the entries and the trailer
Archive::Cpio::read_all($filehandle)
Returns the next entry
Archive::Cpio::write_one($filehandle, $entry)
Writes an entry (beware, a valid cpio needs a trailer using write_trailer
)
Archive::Cpio::write_trailer($filehandle)
Writes an entry (beware, a valid cpio needs a trailer using write_trailer
)
AUTHOR
Pascal Rigaux <pixel@mandriva.com>