On 2/1/06, Ryan Frantz <[EMAIL PROTECTED]> wrote:
snip
> The script will process the first host in the list, begin processing the
> second host, and then perl.exe dies with a popup asking me to send
> details to M$.  I'm not very fluent with OOP, but is it possible that
> the first object has to be destroyed before the next is created?  Or is
> this automatic?
>
> BTW, I'm running ActiveState Perl 5.8.2 on WinXP SP2.  The
> Win32::Process::Info module was installed via 'ppm'.
snip

Perl has reference count garbage collection.  When an object has no
references left it is marked for recycling.  The $processObj and
@procInfo are marked as "my" or lexical variables.  This means they
will go out of scope when outside of the braces that contain them.  In
your case that would be the end of getProcInfo.  When the references
go out of scope the object's reference count gets decremented.

Have you tried the "die" code I sent in an earlier email?

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to