Forum archive 2000-2006

Gavin LaRose - PerlWarn, uninitialized value warnings

Gavin LaRose - PerlWarn, uninitialized value warnings

by Arnold Pizer -
Number of replies: 0
inactiveTopicPerlWarn, uninitialized value warnings topic started 9/23/2004; 12:40:59 PM
last post 9/23/2004; 12:40:59 PM
userGavin LaRose - PerlWarn, uninitialized value warnings  blueArrow
9/23/2004; 12:40:59 PM (reads: 655, responses: 0)
Hi all,

This is a general question about Perl warnings in WeBWorK 2. Are other people out there running their Apache server with PerlWarn turned on? And, if so, do you find that this results in some warnings being kicked out by WeBWorK 2?

My habit is to run everything with full warnings going, and so my default server configuration includes setting PerlWarn On. However, this results in a number of uninitialized value warnings from WeBWorK 2. The most conspicuous of these is on starting the Apache server; this error is reproduced below, and appears to be caused by no course being defined when the server starts. (I get this error echoed to the console from which the server is started.)

Thanks, Gavin

 

Use of uninitialized value in open at
/opt/www/webwork2/webwork-2.0.1/lib/WeBWorK/Utils.pm line 89.
WeBWorK::Utils::readFile('undef') called at
/opt/www/webwork2/webwork-2.0.1/lib/WeBWorK/CourseEnvironment.pm
line 126
eval {...} called at
/opt/www/webwork2/webwork-2.0.1/lib/WeBWorK/CourseEnvironment.pm
line 126
WeBWorK::CourseEnvironment::new('WeBWorK::CourseEnvironment','HASH(0x1f2f80)')
called at
/opt/www/webwork2/webwork-2.0.1/conf/webwork.apache-config line 35
eval 'F;



;' called at
/opt/www/webwork2/webwork-2.0.1/conf/webwork.apache-config line 0
Use of uninitialized value in concatenation (.) or string at
/opt/www/webwork2/webwork-2.0.1/lib/WeBWorK/Utils.pm line 89.
WeBWorK::Utils::readFile('undef') called at
/opt/www/webwork2/webwork-2.0.1/lib/WeBWorK/CourseEnvironment.pm
line 126
eval {...} called at
/opt/www/webwork2/webwork-2.0.1/lib/WeBWorK/CourseEnvironment.pm
line 126

<| Post or View Comments |>