diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-06-03 15:18:17 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-06-03 15:51:17 -0500 |
commit | ec069554b263d4d3a60a315089e170b92badd1d8 (patch) | |
tree | 38e4b6cb2196ee0b56aa33c29df3a94c53ad1e20 /lib/Reply/Plugin/ResultCache.pm | |
parent | 60f235d03fba8232e7f691550ee715e1cfb9c5b6 (diff) | |
download | reply-ec069554b263d4d3a60a315089e170b92badd1d8.tar.gz reply-ec069554b263d4d3a60a315089e170b92badd1d8.zip |
start on some docs
Diffstat (limited to 'lib/Reply/Plugin/ResultCache.pm')
-rw-r--r-- | lib/Reply/Plugin/ResultCache.pm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/Reply/Plugin/ResultCache.pm b/lib/Reply/Plugin/ResultCache.pm index fc260f5..a973d05 100644 --- a/lib/Reply/Plugin/ResultCache.pm +++ b/lib/Reply/Plugin/ResultCache.pm @@ -1,9 +1,26 @@ package Reply::Plugin::ResultCache; use strict; use warnings; +# ABSTRACT: retain previous results to be able to refer to them later use base 'Reply::Plugin'; +=head1 SYNOPSIS + + ; .replyrc + [ResultCache] + variable = r + +=head1 DESCRIPTION + +This plugin caches the results of successful evaluations, and provides them in +a lexical array (by default C<@res>, although this can be changed via the +C<variable> option). This means that you can, for instance, access the value +returned by the previous line with C<$res[-1]>. It also modifies the output to +include an indication of where the value is stored, for later reference. + +=cut + sub new { my $class = shift; my %opts = @_; |