L
laszlo
Consider the following program
$repeat=1000;
for ($i=0; $i<$repeat;$i++) {println();}
if ($@) {print "$@"; die;}
print "done";
sub println {
my $s = shift;
#if (! defined($s)) {$s = "";}
print "$s\n";
if ($@) {print "$@"; die;}
}
If I run it from command mode with -W parameter I get
"Use of unitialized value in concatenation (.) or string in a.txt line
9.
error message for every execution of the sub
However if I use in IIS (WIN2000 Service pack 4; Active State Perl
5.8 806) inside a larger program as part of an
eval({$program})
if ($@) {report the error; die}
statement, the program does not report any error just dies and the
browser (IE 6.0) shows an irrelevant "the page cannot be displayed"
error message.
If I lower thwe value of $repeat to 100 or less, the program finishes
w/o any error message , also if I remove the # comment before the
#if (! defined($s)) {$s = "";}
line, the program runs w/o any problem for reasonable sizes.
In my website environment the program runs, but no error message is
given
http://lzkiss.netfirms.com/cgi-bin/igperl/igp.pl?dir=test&name=test
Any help appreciated
laszlo
$repeat=1000;
for ($i=0; $i<$repeat;$i++) {println();}
if ($@) {print "$@"; die;}
print "done";
sub println {
my $s = shift;
#if (! defined($s)) {$s = "";}
print "$s\n";
if ($@) {print "$@"; die;}
}
If I run it from command mode with -W parameter I get
"Use of unitialized value in concatenation (.) or string in a.txt line
9.
error message for every execution of the sub
However if I use in IIS (WIN2000 Service pack 4; Active State Perl
5.8 806) inside a larger program as part of an
eval({$program})
if ($@) {report the error; die}
statement, the program does not report any error just dies and the
browser (IE 6.0) shows an irrelevant "the page cannot be displayed"
error message.
If I lower thwe value of $repeat to 100 or less, the program finishes
w/o any error message , also if I remove the # comment before the
#if (! defined($s)) {$s = "";}
line, the program runs w/o any problem for reasonable sizes.
In my website environment the program runs, but no error message is
given
http://lzkiss.netfirms.com/cgi-bin/igperl/igp.pl?dir=test&name=test
Any help appreciated
laszlo