Re: [O] Re: Yahoo is moving to PHP ??

2002-11-01 Thread Perrin Harkins
Franck PORCHER wrote: But for is a lot easier to read and debug, IMHO Is there a significant performance difference in using map instead? My experience is that in most cases, the for construct is used to apply the same treatment to all the elements of an array, whence the map

Re: MOD_Perl Converter

2002-11-01 Thread Ged Haywood
Hi there, On Fri, 1 Nov 2002, Frank Naude (FJ) wrote: Sorry if this is a FAQ, So read the docs already! :) but, is there any mod_cgi to mod_perl converter available? Have a look at Apache::Registry. 73, Ged.

Re: Should I be coding with mod_perl 2 yet?

2002-11-01 Thread Ged Haywood
Hi there, On 1 Nov 2002, Clinton Gormley wrote: I'm struggling to get anything much working with mod_perl 2. [snip] I have read all of the documentation on perl.apache.org. Are you sure? :) If these things should be working, Well it does say on the home page that it's the Bleeding Edge.

Re: Novice - Problem with data encoding

2002-11-01 Thread Antti Haapala
I have an XML doc that I generated using XML::LibXML that needs to be included as a hidden form field in a form post. The problem is that the browser is encoding the XML doc. ie. ?xml version=1.0 encoding=UTF-8? !DOCTYPE gtfd SYSTEM http://gftd/schemas/data.dtd; turns into: lt;?xml

Re: [O] Re: Yahoo is moving to PHP ??

2002-11-01 Thread Tony Bowden
On Fri, Nov 01, 2002 at 03:10:54AM -0500, Perrin Harkins wrote: There is a time and place for map: when you want to do something to each element in an array and return the array on the other side. Otherwise, use for, like this: some_function($_) for array;. Even when map is not incorrect, I

Re: [OTish] Version Control?

2002-11-01 Thread Dominic Mitchell
Rob Nagler wrote: Another approach which allows easy sharing between projects is: ~/src/perl/ + Project1/ + Project2/ + Project3/ where Project[123] are root package names. Set PERLLIB=~/src/perl and you can get access to any *.pm in the system, each has a globally unique name.

Re: Yahoo is moving to PHP ??

2002-11-01 Thread Ask Solem Hoel
On Wed, 2002-10-30 at 17:09, John Saylor wrote: Hi ( 02.10.30 03:22 -0500 ) Perrin Harkins: They didn't make their decision on performance though. They seem to have been most influenced by the idea that perl allows too much flexibility in coding style, although I can't see how PHP is

Re: Should I be coding with mod_perl 2 yet?

2002-11-01 Thread Geoffrey Young
Clinton Gormley wrote: I'm struggling to get anything much working with mod_perl 2. I have installed mod_perl 1.99_07 with Apache 2.0.43. I have read all of the documentation on perl.apache.org. I can get a basic page returned to me with a modperl handler, but as soon as I try to do anything

RE: [OTish] Version Control?

2002-11-01 Thread Jesse Erlbaum
Hi Dom -- How do you cope with the problem that perl has of running different versions of modules? We have a similiar situation, in that we're running several projects with different sets of perl libraries. We have common code between them. The trouble starts when we're running several

Re: [OT] Wanted: beginning perl books for poor kids

2002-11-01 Thread John Saylor
Hi ( 02.10.31 21:57 -0800 ) Nick Tonkin: I'm excited to get them going in perl, and I want to appeal to the list for donations of books on learning perl. I'd say the best 'books' are all on line. Don't underestimate the [lowly] man pages. Or perldoc [-f]. And there are stories and tutorials

RE: [OTish] Version Control?

2002-11-01 Thread Ray Zimmerman
At 8:27 AM -0500 11/1/02, Jesse Erlbaum wrote: Hi Dom -- How do you cope with the problem that perl has of running different versions of modules? We have a similiar situation, in that we're running several projects with different sets of perl libraries. We have common code between them.

RE: [OTish] Version Control?

2002-11-01 Thread Jesse Erlbaum
Hi Ray -- Jesse are you saying that you have a single apache server running multiple vhosts with different versions of the same module loaded for different vhosts? Is that actually possible? I thought that whenever you first require ModuleX it will use the value of PERL5LIB in that context

[ANNOUNCE] Apache-Clean-2.00b

2002-11-01 Thread Geoffrey Young
The URL http://www.modperlcookbook.org/~geoff/modules/experimental/Apache-Clean-2.00b.tar.gz has entered CPAN as file: $CPAN/authors/id/G/GE/GEOFF/Apache-Clean-2.00b.tar.gz size: 4725 bytes md5: a25497718555ef6567bdd38685a6b940 it's still incomplete, but it should be educational at

Re: Novice - Problem with data encoding

2002-11-01 Thread Chris Pizzo
Thats what is wierd. I don't do any escaping. I think it might be embperl doing the escaping because if I do a print of the XML doc string it has no escaping. If I put the string between [+ $content +] then it gets escaped. Thanks for your help, Chris - Original Message - From: Antti

RE: [OT] Wanted: beginning perl books for poor kids

2002-11-01 Thread Joe Breeden
Me too. (and sorry to for a couple of private replies its early and I haven't had much caffeine this morning). -Original Message- From: Ryan Parr [mailto:ryanparr;precisiontechonline.com] Sent: Friday, November 01, 2002 12:57 AM To: Nick Tonkin; [EMAIL PROTECTED] Subject: Re: [OT]

RE: [OT] Wanted: beginning perl books for poor kids

2002-11-01 Thread Stone, Derrick J
Amen. http://www.comp.leeds.ac.uk/Perl/start.html http://archive.ncsa.uiuc.edu/General/Training/PerlIntro/ http://www.ebb.org/PickingUpPerl/ http://www.cclabs.missouri.edu/things/instruction/perl/perlcourse.html http://www.lanka.pair.com/techweb/perl/tutor/ oh wait... did you say spanish?

Re: [OTish] Version Control?

2002-11-01 Thread Rob Nagler
Dominic Mitchell writes: How do you cope with the problem that perl has of running different versions of modules? Actually, we have two problems. One problem is developing with multiple versions and the other is what you mention, running production systems. Sometimes I might be in the middle

RE: [OTish] Version Control?

2002-11-01 Thread Jesse Erlbaum
Hey Rob -- Oh, and we *never* (almost :-) put code in programs. The programs invoke a *.pm file's main so we can say bla-some-command and always get the right version. This is how CGI::Application works, too. You might want to check it out! For the benefit of those who are not yet putting

Re: Should I be coding with mod_perl 2 yet?

2002-11-01 Thread Sumitro Chowdhury
Hi, well I have read all (whatever scanty little available) docs on mod_perl 2 and am pretty disappointed. For example Apache::Request is not ready yet so you need Apache::compat and mod_perl 1 for basic POST request handling and parsing. In my opinion, stay with mod_perl 1. -Sumitro Chowdhury.

RE: [OT] Wanted: beginning perl books for poor kids

2002-11-01 Thread Joe Breeden
I would guess that these kids do not have access to computers outside school. Which makes access to printed material advantageous. I guess a printer would be nice, but by the time the cost of it, paper, ink, and other supplies are factored in, I would guess that books would be cheaper.

Re: Should I be coding with mod_perl 2 yet?

2002-11-01 Thread Randy Kobes
On Fri, 1 Nov 2002, Sumitro Chowdhury wrote: Hi, well I have read all (whatever scanty little available) docs on mod_perl 2 and am pretty disappointed. Additions, I'm sure, are welcome :) For example Apache::Request is not ready yet so you need Apache::compat and mod_perl 1 for basic POST

Re: Should I be coding with mod_perl 2 yet?

2002-11-01 Thread Sumitro Chowdhury
--- Randy Kobes [EMAIL PROTECTED] wrote: On Fri, 1 Nov 2002, Sumitro Chowdhury wrote: Hi, well I have read all (whatever scanty little available) docs on mod_perl 2 and am pretty disappointed. Additions, I'm sure, are welcome :) For example Apache::Request is not ready yet so

Re: [OTish] Version Control?

2002-11-01 Thread Josh Chamas
Ged Haywood wrote: Hi all, On Thu, 31 Oct 2002, Iain 'Spoon' Truskett wrote: experimenting with perforce [which, so far, appears nicer than CVS] ) Yikes! Josh, you got anything to say about that? Well I have used perforce much more than CVS now, so that is where I'm most comfortable.

Re: Should I be coding with mod_perl 2 yet?

2002-11-01 Thread Randy Kobes
On Fri, 1 Nov 2002, Sumitro Chowdhury wrote: H I thought POST request handling needs $r-read($buf,$r-headers_in-{'Content-length'}) and GET request handling needs $r-args(); Sorry about that - I should have read more carefully that you were specifically referring to POSTed data -

Re: [OTish] Version Control?

2002-11-01 Thread Geoffrey Young
Oh, CVS is free which is always a good thing. :) subversion (http://subversion.tigris.org/) has been gaining lots of momentum lately, and I just saw this link today: http://svnbook.red-bean.com/ some of you might know the folks at red-bean from their other projects, like

Re: [O] Re: Yahoo is moving to PHP ??

2002-11-01 Thread Perrin Harkins
Tony Bowden wrote: It sounds like you're saying that you should only use a subset of Perl as some programmers may not understand the other parts of it? That is what I'm saying. I'm aware that this is a controversial opinion in the Perl world. However, I think it's reasonable to know your

Re: [O] Re: Yahoo is moving to PHP ??

2002-11-01 Thread John Saylor
Hi ( 02.11.01 13:42 -0500 ) Perrin Harkins: It's not that map is so evil, but rather that I have often seen people overuse it (especially after a first-reading of Effective Perl), and write confusing code with it by jamming too much into the map { some stuff } @list form. As a former map

Re: Novice - Problem with data encoding

2002-11-01 Thread Gerald Richter
Thats what is wierd. I don't do any escaping. I think it might be embperl doing the escaping because if I do a print of the XML doc string it has no escaping. If I put the string between [+ $content +] then it gets escaped. Yes, Embperl escapes your output per default, you can turn it

mod_perl2: apache.pm vs apache2.pm (CGI.pm)

2002-11-01 Thread pilsl
I've mod_perl running on several machines (apache 1.x) Today I installed a new system with apache2 and ran into deep troubles and questions: I installed perl-5.8.0, apache 2.0.43 and mod_perl 1.99_07 I preload Apache2 and use ModPerl::Registry: LoadModule perl_module modules/mod_perl.so

Re: MOD_Perl Converter

2002-11-01 Thread Perrin Harkins
Ged Haywood wrote: On Fri, 1 Nov 2002, Frank Naude (FJ) wrote: but, is there any mod_cgi to mod_perl converter available? Have a look at Apache::Registry. And to address the specific problem you mentioned about initializaing variables, look at Apache::PerlRun. - Perrin

Re: mod_perl2: apache.pm vs apache2.pm (CGI.pm)

2002-11-01 Thread Sumitro Chowdhury
--- [EMAIL PROTECTED] wrote: I've mod_perl running on several machines (apache 1.x) Today I installed a new system with apache2 and ran into deep troubles and questions: I installed perl-5.8.0, apache 2.0.43 and mod_perl 1.99_07 snip If I use the Compat-mode the problem vanishes.

Re: Should I be coding with mod_perl 2 yet?

2002-11-01 Thread Sumitro Chowdhury
--- Randy Kobes [EMAIL PROTECTED] wrote: my %args = $r-Apache::args; is for GET requests. For POST, as is described in the content() method of Apache::compat, for now one can use $r-setup_client_block; # return an error unless $r-should_client_block; my $len =

apache::ASP

2002-11-01 Thread RJWelte
Does this include an AddRotator? john welte

interesting hang...

2002-11-01 Thread Michael Forbes
My apologies if this is a FAQ, I haven't been able to figure it out can't find the answer online anywhere. I have a fairly extensive script I've written to display tables of information about equipment for an online game. For some reason the script is hanging at at least two points: At one

ORACLE_HOME environment variable not set!

2002-11-01 Thread Smejkal Petr
I installed a new intranet server a few days ago. My development server is on Windows2000 (notebook) and production is Linux (server). Everything works fine on my notebook but I have problems on my server. Sometimes there is an message ORACLE_HOME environment variable not set! in my error log

Re: mod_perl2: apache.pm vs apache2.pm (CGI.pm)

2002-11-01 Thread Jason Czerak
On Fri, 2002-11-01 at 17:54, [EMAIL PROTECTED] wrote: First, make sure you have the latest version of CGI.pm from CPAN. It has fixes in there to automatically load Apache::Compat for you. Also CGI.pm isn't fully mod_perl2 compatable. so there is that over head unfortunally. Right now for me, I'll