- or download this
use strict;
use warnings;
...
$response->body($content_download);
return $response->finalize;
}
- or download this
open (FILE, "< $path_file") or die "can't open $path_file: $!";
binmode FILE;
...
return $response->finalize;
}
close FILE;
- or download this
use IO::Handle;
...
close $fh;
return $response->finalize;