in reply to module unload
Depending on what you are trying to do, you can hack your way around "Module Unloading".
... ## save data, ignore if you are archiving something already on disk my $blah = $tmp_dir . $$ . '.tmp'; open( TMP, ">$blah" ) or die; print TMP $data; close( TMP ); ## run another archiving script unshift( @archive_args, $blah ) my $is_archived = system( $perl, $archiving_script, @archive_args ); ## read archive, copy it, move it, unlink it, etc. ...
Like I said, it is a hack. There are several things to keep in mind, like security, data integrity, your app will "freeze" until the system call returns, and you are only freeing memory used by Archive::Zip( not memory used by the data itself ).
I hope this helps a little.
Will perl for money
JJ Knitis
(901) 756-7693
gt8073a@industrialmusic.com
|
|---|