Hi. Thats not likely; This is your program with the missing data filled in
#!/usr/bin/perl -- use strict; use warnings; my @nets = qw/ a b c d /; # my $ioRef = $moduleRef->{modRef}{$moduleName}{ioRef}; my $ioRef = { qw/ q q c c d /, undef }; ## Data::Dump::dd( $ioRef ) for my $net ( @nets ){ print "checking $net\n"; if( defined $ioRef->{$net} ){ print "defined $net $ioRef->{$net} \n"; } } __END__ checking a checking b checking c defined c c checking d
You're saying a/b are defined inside $ioRef ... but thats highly unlikely (impossible)
What does that mean? You need to post runnable code
In reply to Re: Wrong Results in checking if hash value is defined or not
by Anonymous Monk
in thread Wrong Results in checking if hash value is defined or not
by sandeep.waikar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |