Re: how to launch perl

2007-07-20 Thread Chas Owens
On 7/20/07, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: Chas Owens wrote: > *Lisp and Scheme people actually use them as editors. OK, you just scare the Hel out of me. You're one of those people who think everyone should write programs that write programs that do real work. Do not want. sni

Re: how to launch perl

2007-07-20 Thread Mr. Shawn H. Corey
Chas Owens wrote: *Lisp and Scheme people actually use them as editors. OK, you just scare the Hel out of me. You're one of those people who think everyone should write programs that write programs that do real work. Do not want. -- Just my 0.0002 million dollars worth, Shawn "For

Re: how to launch perl

2007-07-20 Thread Chas Owens
On 7/20/07, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: Chas Owens wrote: > Yes, but that is not what a good REPL should do with it. Take a look > at the pugs example again. The problem is that you are executing my > code in your context. My code should be evaluated in a separate > context.

Re: how to launch perl

2007-07-20 Thread Mr. Shawn H. Corey
Chas Owens wrote: Yes, but that is not what a good REPL should do with it. Take a look at the pugs example again. The problem is that you are executing my code in your context. My code should be evaluated in a separate context. There should be no difference between No, I am executing my cod

Re: how to launch perl

2007-07-20 Thread Chas Owens
On 7/20/07, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: Chas Owens wrote: > The problem is that "my $c = 5" creates a lexical inside the while > loop created by -p and it goes out of scope immediately. Yes, that's what 'my' means. If you do it without the 'my', it works. And it has a lot of s

Re: how to launch perl

2007-07-20 Thread Mr. Shawn H. Corey
Chas Owens wrote: The problem is that "my $c = 5" creates a lexical inside the while loop created by -p and it goes out of scope immediately. Yes, that's what 'my' means. If you do it without the 'my', it works. And it has a lot of security problems. But it's also quick and easy to remember

Re: how to launch perl

2007-07-20 Thread Adriano Ferreira
On 7/20/07, Chas Owens <[EMAIL PROTECTED]> wrote: On 7/20/07, Adriano Ferreira <[EMAIL PROTECTED]> wrote: snip > Just adding to what John already said, it hangs because, when used > without arguments like script file names or " -e 'print qq{Hello, > world\n}' ", it expects the script is co

Re: how to launch perl

2007-07-20 Thread Chas Owens
On 7/20/07, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: Chas Owens wrote: > There are also some Perl REPLs* out there that allow you to use a Perl > interpreter interactively. > > zoidberg, a Perl shell: > http://search.cpan.org/~pardus/Zoidberg-0.95/lib/Zoidberg.pm > psh, another Perl shell: h

Re: how to launch perl

2007-07-20 Thread Mr. Shawn H. Corey
Chas Owens wrote: There are also some Perl REPLs* out there that allow you to use a Perl interpreter interactively. zoidberg, a Perl shell: http://search.cpan.org/~pardus/Zoidberg-0.95/lib/Zoidberg.pm psh, another Perl shell: http://sourceforge.net/projects/psh/ Devel::REPL, a modern Perl REPL:

Re: how to launch perl

2007-07-20 Thread Mr. Shawn H. Corey
Adriano Ferreira wrote: Just adding to what John already said, it hangs because, when used without arguments like script file names or " -e 'print qq{Hello, world\n}' ", it expects the script is coming from the standard input. Well, actually the OP said he was using '#!/usr/bin/perl -wT'

Re: how to launch perl

2007-07-20 Thread Chas Owens
On 7/20/07, Adriano Ferreira <[EMAIL PROTECTED]> wrote: snip Just adding to what John already said, it hangs because, when used without arguments like script file names or " -e 'print qq{Hello, world\n}' ", it expects the script is coming from the standard input. So you can do $ perl -wT

Re: how to launch perl

2007-07-20 Thread Adriano Ferreira
On 7/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hey Guys, I am working on linux (redhat) 1999 version without the xwindows. I have configured my dns server on this linux box and it works fine for my test lab network at home. Apache and sendmail are also working fine without any problem

Re: how to launch perl

2007-07-20 Thread John W. Krahn
[EMAIL PROTECTED] wrote: Hey Guys, Hello, I am working on linux (redhat) 1999 version without the xwindows. It's either X or the X Window System. http://en.wikipedia.org/wiki/X_Window_System I have configured my dns server on this linux box and it works fine for my test lab network at h