I can now redirect to another runmode passing the $output variable and solve the problem as you suggested. thank you very much!$self->generate_zip(); my $output = $self->download_zip(); #here I can do what I want. unlink and so on.. my $filename = "temporaneo/" . $self->session->param("nom_projet") + . ".zip"; unlink $filename; #and only then I stream the output return $output;
In reply to Re^3: cgi download and delete file
by teddyttas
in thread cgi download and delete file
by teddyttas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |