Help for this page

Select Code to Download


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