#!/usr/bin/perl use strict; use warnings; use CGI qw(); # Testdaten my $content = '0123456789abcdef' x ( 64 * 1024 ); my $cgi = CGI->new(); print $cgi->header( -type => 'application/octet-stream', -attachment => 'save.dat', # -Content_length => length $content, ); ### Altlasten #my $length = length $content; #print <