No such thing as a small change | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
The problem here is that when the line
is executed $main::mold has never been assigned a value. If you executed that line twice you would find on the second time it would print the value 1, which would be the return value of the print statement from the first time it was executed. If you set $mold to be some value BEFORE you called spawn then it would print that value. I thought that Standard::spawn() was really Mold::spawn() here. My apologies. Theres not much we can do to help without knowing what Mold::spawn() looks like. Suffice it to say that this is a good example of checking to see if constructors actually suceed.
Would tell you if Mold::spawn() actually returned anything. --- demerphq <Elian> And I do take a kind of perverse pleasure in having an OO assembly language... In reply to Re: globalization sorrows
by demerphq
|
|