Acme-RPC
view release on metacpan or search on metacpan
- Scott Walters <scott@slowass.net>
license: unknown
distribution_type: module
configure_requires:
ExtUtils::MakeMaker: 0
requires:
Continuity: 0
Devel::Caller: 0
IO::Handle: 0
JSON: 0
PadWalker: 0
no_index:
directory:
- t
- inc
generated_by: ExtUtils::MakeMaker version 6.48
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
Makefile.PL view on Meta::CPAN
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
NAME => 'Acme::RPC',
VERSION_FROM => 'lib/Acme/RPC.pm', # finds $VERSION
PREREQ_PM => {
Continuity => 0.0,
'IO::Handle' => 0.0,
JSON => 0.0,
'Devel::Caller' => 0.0,
PadWalker => 0.0,
}, # e.g., Module::Name => 1.1
($] >= 5.005 ? ## Add these new keywords supported since 5.005
(ABSTRACT_FROM => 'lib/Acme/RPC.pm', # retrieve abstract from module
AUTHOR => 'Scott Walters <scott@slowass.net>') : ()),
);
lib/Acme/RPC.pm view on Meta::CPAN
our $VERSION = '0.01';
use B;
use B::Deparse;
use Continuity;
use IO::Handle;
# use Devel::Pointer;
use JSON;
use Data::Dumper;
use Devel::Caller 'caller_cv';
use PadWalker 'peek_sub';
use Scalar::Util 'blessed';
my $comment = <<'EOF';
Todo:
* Accept JSON as input too, for the parameters!
* When taking apart CODE, do closes_over() too, not just peek_my().
lib/Acme/RPC.pm view on Meta::CPAN
* action=dump on anything; in the case of a coderef, find its source on disc or else deparse it
* action=call on coderefs and blessed objects, with an args parameter, or arg1, arg2, arg3, etc, and a method parameter for blessed objs.
* json will croak if a reference contains objects in side it somewhere. Should handle this gracefully.
* Offer JSON output! Not just Data::Dumper. Do this for action=dump, action=call, and the default tree view.
* If Devel::Leak won't give us refs... have to do an Acme::State style crawl from main::,
but crawling into each sub and looking at its lexicals with PadWalker.
Could make for a nice tree view.
Would also make it easy to filter out the variables that hold refs.
* Maybe this should be called Acme::RPC.
* Actually crawl into code refs when recursing the output!
* Devel pointer is too much work also. Maybe we should just cache $tree and then
walk it again when passed an oid. *sigh* Magic isn't working for me today.
Bleah.
( run in 0.725 second using v1.01-cache-2.11-cpan-05444aca049 )