Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Using Devel::REPL

by robby_dobby (Hermit)
on Jun 20, 2016 at 01:27 UTC ( [id://1166091]=note: print w/replies, xml ) Need Help??


in reply to Using Devel::REPL

Hello guiwp,

While Devel::REPL is nice, a better option would be to use Reply. Reply has more plugins than Devel::REPL and comes with features such as script loading, stepping through lines, pretty printing and syntax colouring and so on.

The author of Devel::REPL himself prefers Reply over Devel::REPL.

Replies are listed 'Best First'.
Re^2: Using Devel::REPL
by guiwp (Sexton) on Jun 20, 2016 at 13:49 UTC

    Thank you @robby_dobby, I'll give it a try!

Re^2: Using Devel::REPL
by guiwp (Sexton) on Jun 23, 2016 at 03:14 UTC
    Strange... using reply (reply --cfg filerc) I always get Unknown option: cfg

      Solved! I was using Getopt::Long in my module/script (I mixed module with script so I could run through command line and use as module if wanted too) and somehow it was interfering with the logic of the reply.

      My approach now is make a module and a script that use the module (obvious thing!) to avoid such problems!

        Great! So, it's all good... :-)
      Strange indeed, it works for me. Are you sure reply runs the correct executable?

      ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
        guilherme@debian:[~]: grep -m1 -e version $(which reply) version 0.35 guilherme@debian:[~]: md5sum $(which reply) 4187760e3097dd0d0e68eab89a043c6f /usr/bin/reply guilherme@debian:[~]: file $(which reply) /usr/bin/reply: Perl script, ASCII text executable guilherme@debian:[~]: dpkg -S $(which reply) libreply-perl: /usr/bin/reply guilherme@debian:[~]: apt-cache show $(echo $(dpkg -S $(which reply))| +cut + -d: -f1) Package: libreply-perl Version: 0.35-1 Installed-Size: 196 Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debia +n.org> Architecture: all Depends: perl, libconfig-ini-reader-ordered-perl, libdevel-lexalias-pe +rl, libeva + l-closure-perl (>= 0.11), libfile-homedi +r-perl, libmodule-runtime-perl, libpacka + ge-stash-p +erl, libpadwalker-perl, libtry-tiny-perl Suggests: libapp-nopaste-perl, libb-keywords-perl, libcarp-always-perl +, libclass + -refresh-perl, libdata-dump-perl, libdat +a-printer-perl, libmro-compat-perl, libp + roc-invoke +editor-perl, libterm-readline-gnu-perl Description-en: lightweight extensible Perl REPL Reply ("read, eval, print, loop, yay!") is a lightweight, extensible +REPL for Perl. It is plugin-based (see Reply::Plugin), and through plugins sup +ports many advanced features such as coloring and pretty printing, readline support, and pluggable commands. . NOTE: This is an early release, and implementation details of this mo +dule are still very much in flux. Feedback is welcome! Description-md5: d625336bcf21da688357d76480cd6070 Homepage: https://metacpan.org/release/Reply Tag: devel::lang:perl, devel::library, implemented-in::perl Section: perl Priority: optional Filename: pool/main/libr/libreply-perl/libreply-perl_0.35-1_all.deb Size: 83562 MD5sum: 98770e9cf54c5b3566eb272739904279 SHA1: 0fa6baec41dfc19dede44ab73ff230c3448cf4e5 SHA256: 0cd536376f11068191dea6fbbd287e7ff01451c3263702990f5e6cf8d94f18 +12

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1166091]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2024-04-18 07:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found