NAME
AnyEvent::App::PerlLive - Persistent Perl live-coding interpreter and REPL backend
SYNOPSIS
From the command line:
perl-live.pl -g
In standalone or framed input mode:
echo 'my $x = 41; say ++$x;' | perl-live.pl -g
From Emacs (with perl-live.el):
(require 'perl-live)
(add-hook 'cperl-mode-hook #'perl-live-mode)
(add-hook 'perl-mode-hook #'perl-live-mode)
DESCRIPTION
AnyEvent::App::PerlLive provides a persistent, event-driven Perl evaluation environment. Top-level lexical declarations (my) become package variables, lexical pragmas and compiler hints persist across evaluations, and errors maintain accurate source filenames and line numbers.
Driven by AnyEvent, it integrates seamlessly with asynchronous backends such as EV and EV::WebKit.
SCRIPTS
- perl-live.pl
-
The core evaluation server. Supports raw EOF input, length-prefixed UTF-8 streams (
-p), and length-prefixed JSON metadata requests (-j). - perl-live-mcp.pl
-
Model Context Protocol (MCP) server providing live Perl evaluation tools for AI coding assistants.
SEE ALSO
AnyEvent, PadWalker, Package::Stash.
GitHub repository: https://github.com/vividsnow/perl-live
AUTHOR
vividsnow
LICENSE AND COPYRIGHT
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3.