sub header { my $output = @_ ; open(OUTPUT, ">$output") or die "Cant open File: $!\n"; while () { print OUTPUT; } __DATA__ Mein Text close(OUTPUT); }