jantelar has asked for the wisdom of the Perl Monks concerning the following question:
It offers this output (two examples):143: if(my @d = $h->fetchrow_array()) { 144: print STDERR "equip_id: $e_id -> ". $d[0] ." (rep_id = ". $d[1] + .")\n"; 145: if($d[0] eq /NA/) {
What is not initialized, or why ?equip_id: 5212 -> -NA- (rep_id = 154) Use of uninitialized value in pattern match (m//) at test.pl line 145. equip_id: 1337 -> 4047.3 (rep_id = 152) Use of uninitialized value in pattern match (m//) at test.pl line 145.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why are this pattern match failing ?
by citromatik (Curate) on Apr 03, 2009 at 10:33 UTC | |
|
Re: Why are this pattern match failing ?
by jettero (Monsignor) on Apr 03, 2009 at 10:33 UTC | |
by JavaFan (Canon) on Apr 03, 2009 at 10:38 UTC | |
|
Re: Why are this pattern match failing ?
by ww (Archbishop) on Apr 03, 2009 at 10:37 UTC | |
|
Re: Why are this pattern match failing ?
by jantelar (Initiate) on Apr 03, 2009 at 10:51 UTC | |
|
Re: Why are this pattern match failing ?
by codeacrobat (Chaplain) on Apr 03, 2009 at 14:03 UTC |