RE: unscrambler speedup rewrite

2006-06-20 Thread Charles K. Clarkson
Jeremy Kister wrote: > I'm wondering how others could write to code so that it'd > find words faster. You don't say where the speed problem is. There are two distinct parts to your script. Loading the dictionary and finding the scrambled word. The scrambling algorithm depends on splittin

Problems with HTML::Template

2006-06-20 Thread sfantar
Hi there, I am starting using HTML::Template modules and I wrote a script with the first example within the doc. I am not able to see the results of my CGI from my browser. It displayed error 500 Internal Server Error. I gave the correct rights to my script to make it executable. In the @INC,

RE: Problems with HTML::Template

2006-06-20 Thread Jeff Peng
Hello, The first,I would suggest you take a look at apache's error_log,you could find something wrong with your scripts or config there. From: sfantar <[EMAIL PROTECTED]> To: beginners-cgi@perl.org, beginners@perl.org Subject: Problems with HTML::Template Date: Tue, 20 Jun 2006 09:22:00 +0200

Re: unscrambler speedup rewrite

2006-06-20 Thread John W. Krahn
Jeremy Kister wrote: > I wrote a word descrambler that works very well, but is very slow > compared to http://www.jumble.org > > I'm wondering how others could write to code so that it'd find words > faster. > > #useful with dictionary from http://wordlist.sourceforge.net/ > > > use strict; >

Re: Problems with HTML::Template

2006-06-20 Thread Prabu
sfantar wrote: Hi there, I am starting using HTML::Template modules and I wrote a script with the first example within the doc. I am not able to see the results of my CGI from my browser. It displayed error 500 Internal Server Error. I gave the correct rights to my script to make it executab

Re: What is the reason for different outputs for a cgi script run from a browser and run from the command line?

2006-06-20 Thread sfantar
sfantar a écrit : Charles K. Clarkson a écrit : sfantar wrote: : In the apache's error log, here is what's written : : : : [error] HTML::Template->new() : Cannot open included file test.tmpl : : file not found. Looks like the template cannot be found. Use the full path to test.tmpl in

Re: What is the reason for different outputs for a cgi script run from a browser and run from the command line?

2006-06-20 Thread Mr. Shawn H. Corey
On Tue, 2006-20-06 at 11:49 +0200, sfantar wrote: > Why are there differences between the output of the CGI mentioned below > which displays the content of $ENV{HOME} et $ENV{PATH}? CGIs are forked off of the web server, which normally runs under a different user. Add these lines to your CGI t

Re: What is the reason for different outputs for a cgi script run from a browser and run from the command line?

2006-06-20 Thread John Ackley
command line you see the instructions to build a display sent to the browser on browser you see how browser reacted to those instructions sfantar wrote: sfantar a écrit : Charles K. Clarkson a écrit : sfantar wrote: : In the apache's error log, here is what's written : : : : [error] HTML::Te