diff options
Diffstat (limited to 'lib/Reply/Plugin/LexicalPersistence.pm')
-rw-r--r-- | lib/Reply/Plugin/LexicalPersistence.pm | 14 |
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(@_); |