[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Second question of the day :-)



Mark Manning/Muniz Eng. writes:
|	$theReply = <<END_HTML;
|blah blah blah....
|END_HTML
|
|Why does the "$theReply = <<END_HTML;" generate the following:
|Use of uninitialized value at /disk4/igoal/Scripts/mldb/checkOut4.cgi line 211.

Are you sure 211 is that line? You shouldn't get that error. Consider:

#!perl

$x = $x + 5;

$theReply = <<END_HTML;
blah blah blah....
END_HTML

print $theReply;

Running this with -w complains about the use of an uninitialized value at
line 3 (the $x = $x + 5 line), but not line 5.

Another possibility is that you're actually doing:

$theReply = <<END_HTML;
blah $variable blah....
END_HTML

and $variable is uninitialized. That will elicit a complaint and the line
number will be the $theReply = line, no matter where $variable occurs in
the hereis doc.

Brian

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch