From Archive::Tar on Archive::Tar->iter Class method.
Returns an iterator function that reads the tar file without loading it all in memory. Each time the function is called it will return the next file in the tarball. The files are returned as Archive::Tar::File objects. The iterator function returns the empty list once it has exhausted the the files contained.
From FAQ:
Isn't Archive::Tar heavier on memory than /bin/tar?
... If you just want to extract, use the extract_archive class method instead. It will optimize and write to disk immediately. ...
Maybe this answers your question.
In reply to Re^2: File list from gz file without reading everything into memory
by XooR
in thread File list from gz file without reading everything into memory
by drblove27
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |