in reply to Use of uninitialized value $data

Thanks for all the thoughts on the chunk. Unfortunately I'm getting this pair of errors for every input chunk in the input file... :(

Replies are listed 'Best First'.
Re^2: Use of uninitialized value $data
by Marshall (Canon) on Nov 13, 2018 at 22:26 UTC
    Run my code and see what it does.
    Try this as an alternative:
    foreach my $datapair (@data) { my ($label, $data) = split('=', $datapair); ###### die "Bad Line: $datapair" if !defined ($data); ##### print "label: $label; data: $data\n"; print OUT1 "$data;"; }
Re^2: Use of uninitialized value $data
by Laurent_R (Canon) on Nov 13, 2018 at 22:18 UTC
    Then please show the content of the @data array using Data::Dumper.
Re^2: Use of uninitialized value $data
by Marshall (Canon) on Nov 14, 2018 at 00:54 UTC
    please show a few lines of the input file that demonstrates the problem.