Jesse Shy wrote:
> 
> Is there a way to keep an object persistant across run modes

I can think of two options:

1. Use a global variable. (I'll admit to using these in some cases). 

2. Stick the object into the param() system, which can be access be
accessed 
anywhere, like:

# set it
$self->param(my_obj => $o); 


# later, in a run mode far away: 

# actually not sure if this syntax will work.
$self->param('my_obj')->obj_method;

# this should work though
my $o = $self->param('my_obj');
$o->obj_method;

  -mark 

http://mark.stosberg.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to