in reply to Re^2: Do not undertand this error message
in thread Do not undertand this error message
Look for sigils. Any place (in the string) where there's a $ or @, for instance, Perl will attempt to interpolate the corresponding variable.
When I run it at the command line, I get this:
Content-Type: text/html; charset=ISO-8859-1 <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-U +S"><head><title> </title> [Fri Apr 29 07:36:15 2005] temp.pl: Use of uninitialized value in stri +ng eq at temp.pl line 36. [Fri Apr 29 07:36:15 2005] temp.pl: Use of uninitialized value in stri +ng eq at temp.pl line 36. [Fri Apr 29 07:36:15 2005] temp.pl: Use of uninitialized value in stri +ng eq at temp.pl line 36. [Fri Apr 29 07:36:15 2005] temp.pl: Use of uninitialized value in conc +atenation (.) or string at temp.pl line 54. </head><body><p>Logic error, unknown choice: </p>/root #
In this case, it appears to be $choice and $payment that are undefined, causing these warnings. However, the one you are getting comes from a different place in the code, and so it may be a different variable.
If you can't figure out where it is by looking at the code, I know two tricks to narrow it down:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Do not undertand this error message
by b310 (Scribe) on Apr 29, 2005 at 12:49 UTC | |
by Transient (Hermit) on Apr 29, 2005 at 13:04 UTC | |
by gellyfish (Monsignor) on Apr 29, 2005 at 13:24 UTC | |
by Transient (Hermit) on Apr 29, 2005 at 13:27 UTC | |
by b310 (Scribe) on Apr 29, 2005 at 18:27 UTC | |
by b310 (Scribe) on Apr 29, 2005 at 13:39 UTC | |
by jonadab (Parson) on Apr 30, 2005 at 11:44 UTC |