summaryrefslogtreecommitdiffstats
path: root/lib/Reply/Plugin/LexicalPersistence.pm
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-06-03 15:18:17 -0500
committerJesse Luehrs <doy@tozt.net>2013-06-03 15:51:17 -0500
commitec069554b263d4d3a60a315089e170b92badd1d8 (patch)
tree38e4b6cb2196ee0b56aa33c29df3a94c53ad1e20 /lib/Reply/Plugin/LexicalPersistence.pm
parent60f235d03fba8232e7f691550ee715e1cfb9c5b6 (diff)
downloadreply-ec069554b263d4d3a60a315089e170b92badd1d8.tar.gz
reply-ec069554b263d4d3a60a315089e170b92badd1d8.zip
start on some docs
Diffstat (limited to 'lib/Reply/Plugin/LexicalPersistence.pm')
-rw-r--r--lib/Reply/Plugin/LexicalPersistence.pm14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/Reply/Plugin/LexicalPersistence.pm b/lib/Reply/Plugin/LexicalPersistence.pm
index deb8d94..3b1f3f5 100644
--- a/lib/Reply/Plugin/LexicalPersistence.pm
+++ b/lib/Reply/Plugin/LexicalPersistence.pm
@@ -1,11 +1,25 @@
package Reply::Plugin::LexicalPersistence;
use strict;
use warnings;
+# ABSTRACT: persists lexical variables between lines
use base 'Reply::Plugin';
use Lexical::Persistence;
+=head1 SYNOPSIS
+
+ ; .replyrc
+ [LexicalPersistence]
+
+=head1 DESCRIPTION
+
+This plugin persists the values of lexical variables between input lines. For
+instance, with this plugin you can enter C<my $x = 2> into the Reply shell, and
+then use C<$x> as expected in subsequent lines.
+
+=cut
+
sub new {
my $class = shift;
my $self = $class->SUPER::new(@_);