You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Astyrrian <as...@clustercorp.com> on 2002/10/13 04:45:41 UTC
Variable Cleanup
Hi,
I am using a namespace/variable to hold things like dbi handles, etc, so
that it is available to all code/modules (embperl modules, perl modules,
etc)
Right now I am manually cleaning it up (As embperl doesn't) but I read
in the docs that if you put the variable in $CLEANUP with value 1,
embperl will do it for you - though there isnt an example of it.
Is this correct?
$whatever::cat = "moo";
$CLEANUP{whatever} = 1;
Can it clean up all of "whatever", or must I list each variable
separately?
Justin
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: Variable Cleanup
Posted by Justin Harrison <sh...@doublebagel.com>.
Disregard this :-)
Solved, and I sent it from the wrong alias :-)
Justin
> -----Original Message-----
> From: Astyrrian [mailto:astyrrian@clustercorp.com]
> Sent: Saturday, October 12, 2002 10:46 PM
> To: embperl@perl.apache.org
> Subject: Variable Cleanup
>
>
> Hi,
>
> I am using a namespace/variable to hold things like dbi
> handles, etc, so that it is available to all code/modules
> (embperl modules, perl modules,
> etc)
>
> Right now I am manually cleaning it up (As embperl doesn't)
> but I read in the docs that if you put the variable in
> $CLEANUP with value 1, embperl will do it for you - though
> there isnt an example of it.
>
>
> Is this correct?
>
> $whatever::cat = "moo";
>
> $CLEANUP{whatever} = 1;
>
> Can it clean up all of "whatever", or must I list each
> variable separately?
>
> Justin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org