Lack of error reporting in embperl 2 ?

2001-05-14 Thread Matthew Freake
This isn't so much a bug in embperl 2, as it is a lack of an expected error message I have the following script: [- $table_type=2; -] [$ if ($table_type == 1) $] One kind of table Another kind of table [$ endif $] NOTE the missing close angle bracket on the first tag ! When

Re: Lack of error reporting in embperl 2 ?

2001-05-14 Thread Gerald Richter
> [$ else $] > ... > When this page is displayed, no error is thrown up and the output is all the > html except that which would have come out of the buggy if statement. > I know that the error reporting of Embperl has to be improved, but such an error is hard to catch. The above code becomes o

Curious log entries

2001-05-14 Thread Neil Gunton
I was concerned when I saw these entries in my apache error log: [Sun May 13 12:05:09 2001] [error] [client 38.28.207.49] File does not exist: /www/crazyguyonabike/com/htdocs/_vti_bin/shtml.exe/_vti_rpc (offline mode: enter name=value pairs on standard input) What's this offline mode stuff? Is

Re: Curious log entries

2001-05-14 Thread Gerald Richter
> I was concerned when I saw these entries in my apache error log: > > [Sun May 13 12:05:09 2001] [error] [client 38.28.207.49] File does not exist: /www/crazyguyonabike/com/htdocs/_vti_bin/shtml.exe/_vti_rpc > (offline mode: enter name=value pairs on standard input) > This is from CGI.pm. CGI.

performance measurements...

2001-05-14 Thread Michael Stevens
Hi. I'm trying to work out the reason for some speed problems I'm having with a complicated embperl based page... Is there any equivalent of Devel::DProf that will give me useful and meaningful results on the time spent inside different sections of my embperl pages? I've used Devel::DProf, and

Re: Curious log entries

2001-05-14 Thread Neil Gunton
Gerald Richter wrote: > I don't think there is much to worry about. I guess somebody has opend your > page with MS Word. The only interesting thing for me, would be why CGI.pm > think it's started form the command line Thanks Gerald, so this looks like yet another annoyance from Microsoft. Just a

Re: performance measurements...

2001-05-14 Thread Gerald Richter
Hi. > > I've used Devel::DProf, and all I can tell is that my code > spends most if its time inside HTML::Embperl::Req::ExecuteReq, > which isn't really surprising, given that all it does > is run one big embperl page. > For Embperl 2 I would expect more detailed results from Devel::DProf, but I

Re: Curious log entries

2001-05-14 Thread Gerald Richter
> > Thanks Gerald, so this looks like yet another annoyance from Microsoft. Oh, webdav is a cool thing, if you need write access to your webserver, for example for maintaining the content of your website. Addtional to uploading documents, you can also assign properties to every document. I use th

Re: Curious log entries

2001-05-14 Thread Neil Gunton
> I guess this location ( the root of your web) is served by Embperl, isn't it > ? If it is, it's actualy the CGI.pm inside of Embperl that gets triggered. > The question is why ? Do you see an access to your web root with strange > parameters in %fdat ? I have the following code in my /init.html

OT: favicon.ico

2001-05-14 Thread ___cliff rayman___
instead of putting the icon in each directory, try these rewrite rules: RewriteCond %REQUEST_FILENAME !/my_icons/favicon.ico$ RewriteRule favicon.ico$ /my_icons/favicon.ico Neil Gunton wrote: > Just as I'd gotten rid of all those irritating error log entries related > to favicon.ico (I finally

Re: OT: favicon.ico

2001-05-14 Thread Neil Gunton
___cliff rayman___ wrote: > > instead of putting the icon in each directory, try these rewrite rules: > > RewriteCond %REQUEST_FILENAME !/my_icons/favicon.ico$ > RewriteRule favicon.ico$ /my_icons/favicon.ico Hmmm, thanks a lot! I'll try that. -Neil ---

Question using base.epl while configuring Apache without mod_perl

2001-05-14 Thread Gary Nielson
I am just starting out with embperl. I installed it on a Redhat 5.2 server running Linux 2.0.26 and perl 5.004_04 and Apache 1.3.6. Tests from the examples at perl.apache.org (if.htm, loop.htm, etc.) work fine on this machine with this virtual host. But I can not get an example on a template show

Re: sorting a hash for checkbox list..

2001-05-14 Thread ___cliff rayman___
if by key order then" @application_k = sort keys %GSIS::PROD_APPLICATION; if by value order by key order then: @application_k = map {$_->[0]} sort {$a->[1] <=> $b->[1] || $a->[0] cmp $b->[0]} map {[$_ , $GSIS::PROD_APPLICATION{$_}]} keys %GSIS::PROD_A

Re: Lack of error reporting in embperl 2 ?

2001-05-14 Thread Jeff Sheffield
> no error is thrown up and the output is all the > html except that which would have come out of the buggy if statement. EmbPerl does not validate html. I once heard that the reason that Natscape was so bloated, was because that it tries to render these things correctly. i.e. anticipate bad ht

Re: sorting a hash for checkbox list..

2001-05-14 Thread Angus Lees
On Mon, May 14, 2001 at 05:14:31PM -0700, ___cliff rayman___ wrote: > if by value order by key order then: > @application_k = > map {$_->[0]} > sort {$a->[1] <=> $b->[1] || $a->[0] cmp $b->[0]} > map {[$_ , $GSIS::PROD_APPLICATION{$_}]} > keys %GSIS::PROD_A

Turning off autofill of forms

2001-05-14 Thread Brooklyn Linux Solutions CEO
Greeting When we work with forms, the values of which are automatically filled in the follow up forms with the same values, as it should. WHo do I turn that off on given form? Do I need to manipulate udat or idat? Ruben -- Brooklyn Linux Solutions http://www.mrbrklyn.com http://www.brookly

Re: sorting a hash for checkbox list..

2001-05-14 Thread ___cliff rayman___
you're right. in the original example i stole this from, there were some function calls and data tests. without them, this is overly complex . Angus Lees wrote: > On Mon, May 14, 2001 at 05:14:31PM -0700, ___cliff rayman___ wrote: > > if by value order by key order then: > > @application_k

Re: Turning off autofill of forms

2001-05-14 Thread Angus Lees
On Mon, May 14, 2001 at 10:22:22PM -0400, Brooklyn Linux Solutions CEO wrote: > When we work with forms, the values of which are automatically > filled in the follow up forms with the same values, as it should. > WHo do I turn that off on given form? Do I need to manipulate udat > or idat? $optD

Re: Question using base.epl while configuring Apache without mod_perl

2001-05-14 Thread Gerald Richter
> I am just starting out with embperl. I installed it on a Redhat 5.2 server > running Linux 2.0.26 and perl 5.004_04 and Apache 1.3.6. Tests from the > examples at perl.apache.org (if.htm, loop.htm, etc.) work fine on this > machine with this virtual host. But I can not get an example on a > t