kepler has asked for the wisdom of the Perl Monks concerning the following question:
Here's line 36 to 57:Use of uninitialized value in substitution (s///) at /home/rui/public_ +html/cgi-bin/e/e_update.pl line 49. Use of uninitialized value in length at /home/rui/public_html/cgi-bin/ +e/e_update.pl line 53.
Any idea how to stop this? Kind regards, Keplermy ($a,$b,$c,$d,$e,$f,$g,$h,$i,$j) = split (/\,/,$line); $a = $a.$c.$i.$b; if ($e < 0){ $e = abs($e)."S"; } else { $e = abs($e)."N"; } if ($f < 0){ $f = abs($f)."W"; } else { $f = abs($f)."E"; } $d =~ s/\;/\,/gi; $j =~ s/\;/\,/gi; #line 49 my ($k,$l) = split (/\;/,$h); if(length($l) > 0){ #line 53 print FILE $d."|".$g."|".$i."|".$k."|".$e.", ".$f."\n"; } else { print FILE $d."|".$g."|".$j."|".$k."|".$e.", ".$f."\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: "Use of uninitialized value" annoying message
by GrandFather (Saint) on Feb 21, 2011 at 04:46 UTC | |
|
Re: "Use of uninitialized value" annoying message
by Anonymous Monk on Feb 21, 2011 at 04:49 UTC | |
|
Re: "Use of uninitialized value" annoying message
by educated_foo (Vicar) on Feb 21, 2011 at 04:38 UTC | |
by kepler (Scribe) on Feb 21, 2011 at 08:45 UTC | |
by GrandFather (Saint) on Feb 21, 2011 at 09:18 UTC |