Thank you all for your time and helpful advice (although I am baffled by Plankton's response! what does it mean?!?)
it turned out, in the end, that my problem was actually that one of the variables that i was trying to print out simply didn't exist - it never was one of the params that got passed to the script from the form i'm using. so that was simple. (there is no param called "SUBMITINST").
oddly enough, though, when i ran Anonymous Monk's snippet to spit out all the $vars, it ignored that?
i'm left with the question: "why does the compiler recognize that $submitinst as
undef in line 33, but not in line 23? i.e. why didn't it complain that $in{SUBMITINST} was
undef?
and thanks also to Ovid (whose tutorials i love!!) for pointing out that i can just use the hash values, rather than transferring them into new scalars. that cleans things up a lot!
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.