in reply to Re^11: warning: use of uninitialized value
in thread warning: use of uninitialized value
thanks robby_dobby i have applied your suggestions and its working fine by providing the required output
but only one warning is comming out everytime
use of uninitialized value $key in hash element at newperlfile2.pl line 85, <$CFILE> line 3.....
the line 85 being marked with ****
if result is correct why the warning keeps on comming.my $cChipId; my $cSubVersId; my %data_ids; my $readline; if(open (my $CFILE,"config.txt" ) || die "couldnt open file:", $! ) { while ($readline = <$CFILE>) { chomp $readline; my ($key , $value) = (split /::/, $readline); $data_ids{$key} = $value;**** } for my $key (keys %data_ids) { $cChipId = $data_ids{'chipid'}; $cSubVersId = $data_ids{'subversid'}; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^13: warning: use of uninitialized value
by robby_dobby (Hermit) on Jun 26, 2015 at 10:31 UTC |