you can easily filter out empty entries with:
@output = grep { /.+/ } @output ;
Edit: You can get the same thing easier:
$input = "DEADBEEF"; my @output = ( $input =~ m/.{2}/g );
Change 2 more versions:
$input = "DEADBEEF"; my @output = unpack("(A2)*", $input);
Hello
source share