On Sat, 2005-08-20 at 15:17 -0400, Christopher H. Laco wrote:
> I do have a start_document sub, so if I always reset my @context = () in 
> that, I should be fine.

This will only work if you do something like this:

my @context;

sub do_something {
    push @context....
}

sub reset_context {
    @context = ();
}

You need to keep a reference to the @context used by do_something() in
order to reset it, and the reset_context() sub does that.

- Perrin

Reply via email to