I would asume that this is a bug in Archive::Cpio. The ->remove subroutine treats $archive->{list} as an array of strings (as do the examples), but it contains Archive::Cpio::File objects that don't seem to have stringification overload.
You'll likely need to rewrite the ->remove method to actually remove elements by their ->name (and raise a bug against the module, please).
The test suite only tests that the (main) module can be loaded and tests no functionality at all, so adding a test for ->remove wouldn't hurt either.
In reply to Re^7: manipulating cpio archive
by Corion
in thread manipulating cpio archive
by momo33
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |