diff options
Diffstat (limited to 'lib/Reply/Plugin/ResultCache.pm')
-rw-r--r-- | lib/Reply/Plugin/ResultCache.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Reply/Plugin/ResultCache.pm b/lib/Reply/Plugin/ResultCache.pm index a973d05..91fda37 100644 --- a/lib/Reply/Plugin/ResultCache.pm +++ b/lib/Reply/Plugin/ResultCache.pm @@ -36,8 +36,9 @@ sub compile { my $self = shift; my ($next, $line, %args) = @_; - $args{environment} ||= {}; - $args{environment}{'@' . $self->{result_name}} = $self->{results}; + $args{environments}{''.__PACKAGE__} = { + "\@$self->{result_name}" => $self->{results}, + }; $next->($line, %args); } |