On 18-Sep-06, at 8:54 AM, [EMAIL PROTECTED] wrote:

Well my app is going in the one plugin. The only hook I have (up to
now) is xmlresponse. So I want to share it across methods in the
plugin. But not between plugins.

So you have two options for storage. Both require creating a hash:

my %hash;

The first is simply passing between your methods. Pass it as a reference:

  $self->other_method(\%hash);

The second is to put it in the $client object's notes field - this is a per-request storage location:

  $self->client->notes('johns_unique_key_name', \%hash);

And then access via $self->client->notes('johns_unique_key_name')-> {$subkey};

Matt.

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

Reply via email to