4 ms·
Also, I rarely see listed Devel::REPL. Excellent, excellent tool. Run re.pl with perl -d, and you have half the useful REPLness of CL.
by Xurinos 16y ago
Also, I rarely see listed Devel::REPL. Excellent, excellent tool. Run re.pl with perl -d, and you have half the useful REPLness of CL.
- draegtun 16y agoI usually leave a terminal window with Devel::REPL up, often with DBIx::Class running (an ORM and yet another Modern Perl module). Excellent for prototyping with a database and great alternative to normal SQL command line interface.
- viraptor 16y agoIt's ok... It's better than nothing, but sometimes it can be pretty confusing (one can argue that's correct, but it's definitely not what I'd expect). $ my @a=(1,2,3) $ARRAY1 = [ 1, 2, 3 ]; $ my $r=[1,2,3] $ARRAY1 = [ 1, 2, 3 ];
- draegtun 16y agoThats just standard Data::Dumper output so nothing to worry about: $ say $_ for @a; 1 2 3 $ say $_ for @$r; 1 2 3 You can switch on the Data Dumper Concise plugin (Devel::REPL::Plugin::DDC). It will still display @a has a array reference but its nicer to look at: $ my @a=(1,2,3) [ 1, 2, 3 ] $ my $r=[1,2,3] [ 1, 2, 3 ] It's ok... It's better than nothing Come on its a lot better than nothing! Checkout the plugins on CPAN because this really makes it a very powerful tool: http://search.cpan.org/search?query=devel%3A%3Arepl%3A%3Aplugin%3A%3A*+&mode=module http://search.cpan.org/search?query=devel%3A%3Arepl%3A%3Aplu...
- viraptor 16y agoI meant the array reference that looks weird even if you're listing an array. Well... it is a usable REPL, but I'm used to running IPython+pdb as my login shell. `re.pl` cannot be really compared there.
- draegtun 16y agoI find re.pl more than just an usable REPL and considering its a lot younger project than IPython then I'd have to say its progressed/progressing extremely well.
- Xurinos 16y agoThis is a good list to progress towards: http://vmathew.in/lisp-repl.html http://vmathew.in/lisp-repl.html
- viraptor 16y agoNo sympathy there, unfortunately. IPython started in 2005 and was very usable shortly after. Actually, it was more usable then, than Devel::REPL is now. Devel::REPL is now 3 years old (released first cpan version, 1.0 in 2007) and I really can't defend it. It's just not on the same level yet. Even Zoidberg is better in some ways, but it didn't provide nice enough access to Perl syntax the last time I tried it.
- draegtun 16y agoNo need to defend or provide any sympathy because I find Devel::REPL to be a great REPL and it fulfils all my needs. I've used REPL's in Ruby (irb), Io, Rakudo and Clojure and IMHO Devel::REPL is no where near the bottom of this list! BTW, a couple of points: * Zoidberg is a shell clone (ala Bash, Korn, csh, zsh) and is more akin to projects/products like psh (http://sourceforge.net/projects/psh http://sourceforge.net/projects/psh). While there are overlaps Zoidberg isn't really a full REPL (like Devel::REPL, PerlConsole or even Perl::Shell). * Devel::REPL started as a blog post in April 2007 (http://chainsawblues.vox.com/library/post/a-perl-read-excute-print-loop-repl.html http://chainsawblues.vox.com/library/post/a-perl-read-excute...). It may have been called version 1.0 but it was just an proof of concept at this time.