in reply to Archive::tar tape0

Warning: I've never used this... ptar x apparently extracts files. If you want to incorporate this ability in another program, Archive::Tar has a read method.