J
John W. Kennedy
I'm developing a CGI web bulletin board from scratch. (The target
system has _none_ of the standard PERL library available except CGI.pm;
and won't run any kind of script in anything but PERL; I have no control
over this.) I've been doing PERL for years, but only in spurts, so my
knowledge is less exact than I wish it were.
I have the following statement.
$self->subenumerate ($$self{$_}, 0, $tree, $levels) foreach {@$index};
It blows up in "subenumerate", where the argument corresponding to
$$self{$_} turns up as undefined.
But if I change it to this, everything works as it should.
foreach (@$index) {
$self->subenumerate ($$self{$_}, 0, $tree, $levels);
}
At the moment, I'm developing components, running under ActivePerl 5.8.2
under XP.
Is this my fault, or is something broken?
--
John W. Kennedy
"But now is a new thing which is very old--
that the rich make themselves richer and not poorer,
which is the true Gospel, for the poor's sake."
-- Charles Williams. "Judgement at Chelmsford"
system has _none_ of the standard PERL library available except CGI.pm;
and won't run any kind of script in anything but PERL; I have no control
over this.) I've been doing PERL for years, but only in spurts, so my
knowledge is less exact than I wish it were.
I have the following statement.
$self->subenumerate ($$self{$_}, 0, $tree, $levels) foreach {@$index};
It blows up in "subenumerate", where the argument corresponding to
$$self{$_} turns up as undefined.
But if I change it to this, everything works as it should.
foreach (@$index) {
$self->subenumerate ($$self{$_}, 0, $tree, $levels);
}
At the moment, I'm developing components, running under ActivePerl 5.8.2
under XP.
Is this my fault, or is something broken?
--
John W. Kennedy
"But now is a new thing which is very old--
that the rich make themselves richer and not poorer,
which is the true Gospel, for the poor's sake."
-- Charles Williams. "Judgement at Chelmsford"