Re: speed and perl

2002-08-03 Thread Paul Johnson
On Fri, Aug 02, 2002 at 02:08:25AM -0400, Paul Tremblay wrote: > (I know I did a little test with sed, a python script, and a perl > script, just changing the word "the" to "teh" in a huge file. Sed and > python took about he same time, while perl was six times faster.) This is from the perl sou

Re: $0 and path

2002-08-03 Thread chris
Looks like my debugger is not setting up $0 use strict; use warnings; my $prog = '???'; $prog = $0 =~ s!^.*/!! if defined $0; print "# GENERATED BY $prog\n"; On Fri, 02 Aug 2002 17:44:05 -0700, [EMAIL PROTECTED] (John W. Krahn) wrote: >( my $prog = $0 ) =~ s!^.*/!!; > >print "# GENERATED BY

Re: $0 and path

2002-08-03 Thread John W. Krahn
Chris wrote: > > On Fri, 02 Aug 2002 17:44:05 -0700, [EMAIL PROTECTED] (John W. Krahn) > wrote: > > > >( my $prog = $0 ) =~ s!^.*/!!; > > > >print "# GENERATED BY $prog\n"; > > Looks like my debugger is not setting up $0 > > use strict; > use warnings; > my $prog = '???'; > > $prog = $0 =~ s!^

Re: Upgraded to 5.8 problems

2002-08-03 Thread Greg Matheson
On Fri, 02 Aug 2002, Gene McCullough wrote: > While in CPAN, installing a module, it went into the perl5.8.0 > installation, and everything seemed well. > # perl -v > This is perl, v5.8.0 built for i686-linux [cut] > Now, when running a script, I get this message: > Can't locate loadable obje

Perl Rules

2002-08-03 Thread David Farnum
Hello i have been learning perl for about 1 year now on my own. I have been learning C++, Java, HTML, Visual Basic, and C# is school. And the one thing i want to say is that perl is the best. Everytime I find myself writting a program I always want to write it in perl no matter what progra

Re: $0 and path

2002-08-03 Thread chris
Thanks for the tip on the required parentheses around the two variables. I will have to more careful. my debugger handles $0 and $PROGRAM_NAME differently. Not nice. use strict; use warnings; use English; my @fullname; my @filename; $fullname[0] = 'C:\\Windows\\perl\\scripts\\test.pl'; $fullna

Re: Perl Rules

2002-08-03 Thread drieux
On Saturday, August 3, 2002, at 08:43 , David Farnum wrote: [..] > I am learning Object oriented programming and perl Tk right now. I hope > to move on to regular expretions soon. Well that is it just wanted to say > I would rather use perl then any other language any day [..] I fear that you

Looking for multi platform to test my script.

2002-08-03 Thread Connie Chan
Now, I am working on a Win32 OS, scripts here seems working fine. But I hope to test my scripts on a *nix system too... Could you suggest me where to have a free account to run CGI (better can use most of standard modules with Perl too) ? Rgds, Connie -- To unsubscribe, e-mail: [EMAIL PROTECT

Re: Upgraded to 5.8 problems

2002-08-03 Thread Janek Schleicher
Greg Matheson wrote at Sat, 03 Aug 2002 04:44:22 +0200: >> Now, when running a script, I get this message: > >> Can't locate loadable object for module Time::HiRes in @INC (@INC >> contains: /usr/l >> ib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 >> /usr/lib/perl5/site_perl/5.6.0/i386 >> -linux

Re: Perl Rules

2002-08-03 Thread bob ackerman
On Saturday, August 3, 2002, at 06:52 AM, drieux wrote: > > On Saturday, August 3, 2002, at 08:43 , David Farnum wrote: > [..] >> I am learning Object oriented programming and perl Tk right now. I hope >> to move on to regular expretions soon. Well that is it just wanted to >> say I would ra

Re: Perl Rules

2002-08-03 Thread bob ackerman
On Saturday, August 3, 2002, at 08:43 AM, David Farnum wrote: >Hello i have been learning perl for about 1 year now on my own. I have > been learning C++, Java, HTML, Visual Basic, and C# is school. And the > one thing i want to say is that perl is the best. Everytime I find myself > wri

Re: Looking for multi platform to test my script.

2002-08-03 Thread Morten Liebach
On 2002-08-04 02:16:16 +0800, Connie Chan wrote: > Now, I am working on a Win32 OS, scripts here seems working fine. > But I hope to test my scripts on a *nix system too... Could you suggest > me where to have a free account to run CGI (better can use most of > standard modules with Perl too) ?

Re: speed and perl

2002-08-03 Thread Paul Tremblay
On Fri, Aug 02, 2002 at 08:43:45AM -0500, Bryan DeLuca wrote: > If you are interested in language benchmarks you might want to check out > the "Great Computer Language Shootout": > > http://www.bagley.org/~doug/shootout/ > > It has some surprising results. > Yes, the results are surprising. Ac

Re: speed and perl

2002-08-03 Thread Paul Tremblay
On Sat, Aug 03, 2002 at 10:58:24AM +0200, Paul Johnson wrote: > > On Fri, Aug 02, 2002 at 02:08:25AM -0400, Paul Tremblay wrote: > > > (I know I did a little test with sed, a python script, and a perl > > script, just changing the word "the" to "teh" in a huge file. Sed and > > python took about

Re: Looking for multi platform to test my script.

2002-08-03 Thread David T-G
Connie -- ...and then Connie Chan said... % % Now, I am working on a Win32 OS, scripts here seems working fine. I feel for you and hope that *NIX is in your future ;-) % But I hope to test my scripts on a *nix system too... Could you suggest % me where to have a free account to run CGI (bette