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:
- Use Data::Dumper to show you what
your various variables really are; look for ones
that are undef and should be defined.
- Failing that, split up your big long string
into pieces. Start by splitting it in half,
then when you run again the line number will
tell you which half is the problem; split that
half in half again, and repeat until you've got
a string with just one interpolation in it; there
is your problem.
"In adjectives, with the addition of inflectional endings, a changeable long vowel (Qamets or Tsere) in an open, propretonic syllable will reduce to Vocal Shewa. This type of change occurs when the open, pretonic syllable of the masculine singular adjective becomes propretonic with the addition of inflectional endings."
— Pratico & Van Pelt, BBHG, p68
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.