Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

devel::repl::plugin::nopaste(3pm) [debian man page]

Devel::REPL::Plugin::Nopaste(3pm)			User Contributed Perl Documentation			 Devel::REPL::Plugin::Nopaste(3pm)

NAME
Devel::REPL::Plugin::Nopaste - #nopaste to upload session's input and output COMMANDS
This module provides these commands to your Devel::REPL shell: #nopaste The "#nopaste" sends a transcript of your session to a nopaste site. #pastetitle The "#pastetitle" command allows you to set the title of the paste on the nopaste site. For example: "#pastetitle example of some code" defaults to 'Devel::REPL session' CONFIGURATION
nopaste_format The format sent to the nopaste server can be adjusted with the "nopaste_format" option. By default, the output of each perl statement is commented out, and the perl statements themselves are not. This can be reversed by setting the "nopaste_format" attribute to "comment_code" like this in your re.pl file: "$_REPL->nopaste_format( 'comment_code' );" The default of commenting out the output would be set like this: "$_REPL->nopaste_format( 'comment_output' );" These options can be set during a Devel::REPL session, but only affect the future parts of the session, not the past parts. AUTHOR
Shawn M Moore, "<sartak at gmail dot com>" CONTRIBUTORS
Andrew Moore - "<amoore@cpan.org>" perl v5.14.2 2010-05-08 Devel::REPL::Plugin::Nopaste(3pm)

Check Out this Related Man Page

Devel::REPL::Plugin::OutputCache(3pm)			User Contributed Perl Documentation		     Devel::REPL::Plugin::OutputCache(3pm)

NAME
Devel::REPL::Plugin::OutputCache - remember past results, _ is most recent SYNOPSIS
> 21 / 7 3 > _ * _ 9 > sub { die "later" } sub { die "later" } > _->() Runtime error: later DESCRIPTION
Re-using results is very useful when working in a REPL. With "OutputCache" you get "_", which holds the past result. The benefit is that you can build up your result instead of having to type it in all at once, or store it in intermediate variables. "OutputCache" also provides "$_REPL->output_cache", an array reference of all results in this session. Devel::REPL already has a similar plugin, Devel::REPL::Plugin::History. There are some key differences though: Input vs Output "History" remembers input. "OutputCache" remembers output. Munging vs Pure Perl "History" performs regular expressions on your input. "OutputCache" provides the "_" sub as a hook to get the most recent result, and "$_REPL->output_cache" for any other results. Principle of Least Surprise "History" will replace exclamation points in any part of the input. This is problematic if you accidentally include one in a string, or in a "not" expression. "OutputCache" uses a regular (if oddly named) subroutine so Perl does the parsing -- no surprises. CAVEATS
The "_" sub is shared across all packages. This means that if a module is using the "_" sub, then there is a conflict and you should not use this plugin. For example, Jifty uses the "_" sub for localization. Jifty is the only known user. SEE ALSO
"Devel::REPL", "Devel::REPL::Plugin::History" AUTHOR
Shawn M Moore, "<sartak at gmail dot com>" COPYRIGHT AND LICENSE
Copyright (C) 2007 by Shawn M Moore This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2010-05-08 Devel::REPL::Plugin::OutputCache(3pm)
Man Page