in reply to Use of uninitialized value in open second time but not first.
my $output = ''; [download]