more useful options | |
PerlMonks |
period in stringsby kc (Initiate) |
on Apr 27, 2010 at 21:46 UTC ( [id://837204]=perlquestion: print w/replies, xml ) | Need Help?? |
kc has asked for the wisdom of the Perl Monks concerning the following question:
Hi! i'm relatively new to perl and keep getting this warning:
Use of uninitialized value in string eq at test.pl line 40. foreach my $key (@keys) { if (($key->{'att'}->{'for'} eq 'node') && ($key->{'att'}->{'yfiles.type'} eq 'nodegraphics')){ #line 40 here $nodeD = $key->{'att'}->{'id'}; } elsif (($key->{'att'}->{'for'} eq 'edge') && ($key->{'att'}->{'yfiles.type'} eq 'edgegraphics')){ $edgeD = $key->{'att'}->{'id'}; } } i wonder if it is the period in the 'yfiles.type' that is causing the warning and how i can get rid of it?
Back to
Seekers of Perl Wisdom
|
|