DOKK / manpages / debian 12 / libreply-perl / Reply::Plugin::ResultCache.3pm.en
Reply::Plugin::ResultCache(3pm) User Contributed Perl Documentation Reply::Plugin::ResultCache(3pm)

Reply::Plugin::ResultCache - retain previous results to be able to refer to them later

version 0.42

  ; .replyrc
  [ResultCache]
  variable = r

This plugin caches the results of successful evaluations, and provides them in a lexical array (by default @res, although this can be changed via the "variable" option). This means that you can, for instance, access the value returned by the previous line with $res[-1]. It also modifies the output to include an indication of where the value is stored, for later reference.

Jesse Luehrs <doy@tozt.net>

This software is Copyright (c) 2016 by Jesse Luehrs.

This is free software, licensed under:

  The MIT (X11) License
2022-06-17 perl v5.34.0