Projects / Perl Console / Comments

Comments for Perl Console

29 Aug 2007 07:57 sukria

Re: Benefits?
I took the time to sum up why I made that tool.

http://www.sukria.net/en/archives/2007/08/29/why-i-wrote-perl-console-or-why-i-dont-use-perl-e-1-d/ (http://www.sukria.net/en/archives/2007/08/29/why-i-wrote-perl-console-or-why-i-dont-use-perl-e-1-d/)

15 Aug 2007 02:40 sukria

Re: Benefits?


> So, my question still stands.

The idea is to provide the best "shell" as possible for testing and debuging Perl code. This is at a early stage of development.

In next versions, it will be possible to do multiple lines code and then test functions, and if-then-else structure.

Anyway, if you feel like the original debuger fits your needs better than Perl Console, just don't use the later ;)

I must say that since Perl Console was published, I got lots of positive feedback from Perl developers.

14 Aug 2007 17:34 harleypig

Re: Benefits?


> Did you at least give a try to Perl

> Console? Perl console behaves like a

I did. The interface is slightly better, slightly more intuitive, but I don't see a whole lot of improvement over the built-in debugger.

> DB @list = (1, 4, 3, 7)

> DB pop @list

> DB @list

You need to specify what to do with the return value:

p pop @list

x @list

As for the module testing, you can include a module just the same. You just have to specify what to do with the return value.

So, it would be

p md5_base64("test")

So, my question still stands.

14 Aug 2007 00:36 sukria

Re: Benefits?


> Perl calculator. Its keeps interpreting

> your code, ever and ever, importing to

> the current namespace all the stuff you

> do.

I should also have said that you can dynamically load a module and test it within Perl Console :

Perl> use Digest::MD5 qw(md5_base64)

Perl> md5_base64("test")

CY9rzUYh03PK3k6DJie09g

Perl>

Which doesn't seem to be possible with perl -de O, at first glance.

14 Aug 2007 00:34 sukria

Re: Benefits?


> What benefits does this project provide

> over 'perl -de 0'?

>

> The obvious ones I can see (variable tab

> completion and namespace handling) are

> rather minor improvements.

Did you at least give a try to Perl Console? Perl console behaves like a Perl calculator. Its keeps interpreting your code, ever and ever, importing to the current namespace all the stuff you do.

Just a little example of the differences between "perl -de 0" and "Perl Console" :

perl -de O


DB @list = (1, 4, 3, 7)

DB pop @list

DB @list

DB

Perl Console


Perl> @list = (1, 4, 3, 7)

(1, 4, 3, 7)

Perl> pop @list

7

Perl> @list

(1, 4, 3)

As you can see, that's clearly not the same behaviour.

13 Aug 2007 18:41 harleypig

Benefits?
What benefits does this project provide over 'perl -de 0'?

The obvious ones I can see (variable tab completion and namespace handling) are rather minor improvements.

Screenshot

Project Spotlight

ReciJournal

An open, cross-platform journaling program.

Screenshot

Project Spotlight

Veusz

A scientific plotting package.