The thing that works best for me is to use an Apache::SSI object myself
rather than using any kind of chaining.
my $ssi = Apache::SSI-new($text, $r);
print $q-header; # send the HTTP header
$ssi-output();
Or you can capture the output instead of just sending it, like this:
my $ssi=
Viren Jain wrote:
I included the command "PerlModule Apache::DBI" in my mod_perl Apache
configuration files. Yet, over time there builds up more connection in
mysql than apache processes (only Apache/CGI should be accessing MySQL) and
most processes seem to have very high "Time"s
On Thu, 14 Oct 1999, Jeffrey Baker wrote:
Zero optimization: 41.67 requests/second
Stage 1 (persistent connections): 140.17 requests/second
Stage 2 (bound parameters): 139.20 requests/second
Stage 3 (persistent statement handles): 251.13 requests/second
I know you said you don't like it
Ken Williams wrote:
The only thing keeping RegistryNG from being the main version of Registry
(which it will be in the future) is that it hasn't been tested enough by people
like you. So go for it! It's probably going to be a much cleaner way to
proceed than mucking around in Registry.
David Harris wrote:
There are three locking wrappers for DB_File in CPAN right now. Each one
implements locking differently and has different goals in mind. It is
therefore worth knowing the difference, so that you can pick the right one
for your application.
Good summary. Thanks! Note
On Tue, 11 Jan 2000, Stas Bekman wrote:
There are three locking wrappers for DB_File in CPAN right now. Each one
implements locking differently and has different goals in mind. It is
therefore worth knowing the difference, so that you can pick the right one
for your application.
Sean Chittenden wrote:
Mind if I ask a nit-pick of a performance question? Currently
speed and performance are of upmost importance (I'm currently involved in
a mod_perl vs JServ development race).
If you're on Linux, I can tell you right now that mod_perl is
significantly faster
On Sun, 23 Jan 2000, Jonathan Swartz wrote:
- New in-memory code cache keeps track of component usage, and
discards the most infrequently used components as needed. You can
specify the cache size with interp-max_code_cache_size.
This sounds cool, but does it work, i.e. when you
now, i have the exact same problem: i need my SSI to filter thru everithing:
HTML, CGIs, PHP, etc.
You get HTML filtering already. For CGIs, why not write a minimal
PerlHandler to emulate CGI (i.e. set up the environment and execute the
CGI script) and then run the output through SSI? For
Perrin Harkins wrote:
Greg Stark wrote:
For example, it makes it very hard to mix any kind of long running query with
OLTP transactions against the same data, since rollback data accumulates very
quickly. I would give some appendage for a while to tell Oracle to just use
the most recent
On Fri, 28 Jan 2000, Deepak Gupta wrote:
How does connection pooling determine how many connections to keep open?
The reason I ask is that I am afraid my non-modperl scripts are getting
rejected by the db server b/c all (or most) connections are being
dedicated to Apache activity.
Please
On Fri, 28 Jan 2000, Marko van der Puil wrote:
There has been an discussion in the Mod_Perl mailing list about whether you
would profit from splitting your Mod_Perl enabled Apache server and a SQL
database like MySQL over multiple machines. To give this discussion some
technical and
On Fri, 28 Jan 2000, Paul J. Lucas wrote:
but it seems like it does tie your program closely to the structure of the
documents.
It does somewhat, but much less so than existing techniques:
1. Conventional CGI (a print-statement-laden Perl script): this
tightly
Joshua Chamas wrote:
There is no way that people are going to benchmark
10+ different environments themselves, so this merely offers
a quick fix to get people going with their own comparisons.
I agree that having the code snippets for running hello world on
different tools collected in one
I think too that the OS/machine results at
http://www.chamas.com/bench/hello_bycode.html could be more accurate
in comparing results if the results are also grouped by tester,
network connection type, and testing client so each grouping would
well reflect the relative speed differences web
On Sun, 30 Jan 2000, Perrin Harkins wrote:
I can understand that; I just don't want mod_perl users to get a
reputation
as the Mindcraft of web application benchmarks.
I'm not sure I see how that can happen when we quite clearly state that
php4 is faster than mod_perl.
Only one person
Hi,
A week or two ago, in the squid performance thread, I mentioned that I was
looking for ways to eliminate squid from our production servers. I noted
that we are using squid to save an expensive trip to the database to
retrieve mostly static files. At that time I said that I planned to
On Mon, 31 Jan 2000, siberian wrote:
My question is : Has anyone experienced any 'gotchas' in putting perl code
that modperl handlers use on a Network Attached file server like a network
appliance box ( www.netapp.com )?
Just make sure you have time synchronized between your servers and the
Sean Chittenden wrote:
http://www.caucho.com/articles/benchmark.html
Supposedly, according to its benchmarks, it's faster than mod_perl...
impressive to say the least. Any chance someone has any experience
with this or would like to benchmark this technology? External validation
would
Sean Chittenden wrote:
http://www.caucho.com/articles/benchmark.html
Supposedly, according to its benchmarks, it's faster than mod_perl...
impressive to say the least. Any chance someone has any experience with this
or would like to benchmark this technology? External
Bill Moseley wrote:
Is Apache::Registry really that much of a hit in performance over a plain
old Apache content handler? And if so, why?
No, it isn't. This is a "Hello World" benchmark we're talking about
here, designed to show the difference in startup costs. A real app
would not have
Matt Sergeant wrote:
Also, what's different between Resin's smart caching and mod_perl's? Is it
just like StatINC?
It can cache output in a way similar to Mason. They call this "Smart
Caching".
It reloads servlet classes pretty cleanly when code is updated, but
doesn't track dependencies, so
On Tue, 8 Feb 2000, Scott Chapman wrote:
What magazines are good on Perl?
At least two of the members on this list write for Web Techniques (Lincoln
and Randal). And of course The Perl Journal is good.
- Perrin
On Thu, 10 Feb 2000 [EMAIL PROTECTED] wrote:
Okay, I installed mod_perl, Apache::ASP and required modules like
Apache::Filter, and Apache::SSI. (Note, some of the Apache:: modules will
not isntall via CPAN.pm, they look for HTTP in some messed up directory
where it oviously doesn't exist,
On Thu, 10 Feb 2000, Vlad Safronov wrote:
What's the benefits of using XML in building web site with dynamic
content?
(web site is a front end to database)
This is off-topic for this list, but I can't resist...
What's the benefit of using XML? You get to buy expensive application
servers!
On Thu, 10 Feb 2000, Ken Williams wrote:
Yeah, I just saw the message. Since I tend not to use CPAN.pm (I like to
tinker around with stuff when I download/install) I've been ignorant of its
procedures.
The main thing to know is that it won't install if the tests fail, unless
you force it.
On Fri, 11 Feb 2000, Matt Sergeant wrote:
XML and XSLT can provide this. Rather than write pages to a
specific style with toolbars in the right place, and format things how I
want them, I can write in XML, and down transform to HTML using a
stylesheet. When I want to change the look of my
On Wed, 9 Feb 2000, Robert Locke wrote:
We've been using the latest Apache::Session::DBI with some success
using Oracle 8i (DBD::Oracle 1.03) as the data store. (Basically, we
applied Ajit Deshpande's recommendation of patching DBIStore.pm with a
large number for LongReadLen. See
On Wed, 29 Mar 2000, Jerome MOUREAUX wrote:
Alias /indicators2/perl "/disc1/sherpa_a/indicators2/perl"
[...]
PerlSetEnv ORACLE_HOME /disc1/sherpa/oracle
Do you really have a /disc1/sherpa directory and a /disc1/sherpa_a
directory?
- Perrin
On Wed, 29 Mar 2000, Jerome MOUREAUX wrote:
My scripts run well if I launch it from the command line.
Have you tried running them from the command line as the user who the
webserver runs as? There may be something in your user environment that
allows them to work which is not set up for this
On Fri, 31 Mar 2000, Vivek Khera wrote:
My question to all of you who use handlers directly, how do you manage
all your handler mappings? I've seen it done where you add a
Location mapping for each handler you use, which corresponds to each
"program" you need. This, in my experience, tends
On Mon, 3 Apr 2000, Drew Taylor wrote:
In light of the recent "performance monger" thread, I am interested in
information about transitioning from Registry scripts to Apache
handlers. Here is my situation, which I'm guessing is pretty common.
[...]
use Search;
use CGI;
my $q = new CGI;
my
On Mon, 3 Apr 2000, Drew Taylor wrote:
So I just write a small handler which does the same thing as the .pl
script and add a Location /cgi-bin/search.pl directive to use this
handler?
Yes, that should work fine.
And I would need to setup a Location directive for each function
(Search,
On Wed, 5 Apr 2000, Paul Sullivan wrote:
When attempting to use prepare_cached along with Apache::DBI, it
returns this error once it has ran through each of the apache
children.
[Wed Apr 5 ...] [error] prepare_cached(...) statement handle
DBI::st=HASH(0x8296788) is still active at
On Thu, 6 Apr 2000, Drew Taylor wrote:
I have a site which uses cookies for user tracking. If you go to
http://cloudstock.com/, the server is sending the cookie but the browser
is not accepting it ("warn before accepting cookie" is on). If I go to
http://www.cloudstock.com/ the cookie is sent
Jim Winstead wrote:
An important point is that although "Host:" wasn't required until
HTTP/1.1, all of the common browsers have sent it with 1.0 requests
for some time.
Yes, but I've had problems with corporate proxy servers that don't send
it.
- Perrin
On Fri, 7 Apr 2000, Russell D. Weiss wrote:
Normally, this works great. No problem at all. This object goes out of
scope at the end of the script (it's scoped lexically with "my"). It also
goes out of scope when "die" is explicitly called. If I add "die 'Blah blah
blah'" to an app, things
Jim Winstead wrote:
On Apr 08, Zeqing Xia wrote:
Hi,
I'm having a problem with setting the cookie in a REDIRECT. Basically,
I'm doing this in a handler:
$r-headers_out-add('Set-Cookie' = $cookie);
$r-headers_out-add('Location' = $location);
return REDIRECT;
The
Each process of apache has
it's registry which holds the compiled perl scripts in..., a copy of
each for each process. This has become an issue for one of the
companies that I work for, and I noted from monitoring the list that
some people have apache processes that are upwards of 25Megs,
[EMAIL PROTECTED] wrote:
Now with modperl the Perl garbage collector is
NEVER used. Because the reference count of those variables is never
decremented... it's because it's all in the registry, and it's hard to
tell... hmm... what should I throw away, and what should I keep? ;-).
What I
[EMAIL PROTECTED] wrote:
my $i=0;
dosomefunnierstuff();
sub dosomefunnierstuff {
my $funnierstuff;
if($funnierstuff=~/funnier/) {
dosomefunnierstuff();
} else {
$funnierstuff="funnier".$i++;
}
print "Funnierstuff is
On Tue, 18 Apr 2000, Steve Hay wrote:
I'm having problems using "CGI::Carp qw(fatalsToBrowser);" in modperl
scripts.
[...]
The first one calls die() itself. Under Apache/CGI the die() message
appears in the web browser (albeit preceded by a
spurious Content-Type line), but under
On Wed, 19 Apr 2000, Steve Hay wrote:
Sounds like a difference in the way CGI scripts and mod_perl buffer. I
fyou really want CGI::Carp to work, you need to make sure you don't send
any output before it gets called. Maybe you have PerlSendHeader on?
I did have PerlSendHeader On:
"John S. Evans" wrote:
Weird. The whole point of Apache::DBI (or so I understand it) is so that
your $dbh stays valid across CGI or Handler calls.
That's right. The disconnect call is a no-op when using Apache::DBI.
I can only think of two reasons why I get the error message:
1) My
On Tue, 25 Apr 2000 [EMAIL PROTECTED] wrote:
With mod_proxy you really only need a few mod_perl processes because
no longer is the mod_perl ("heavy") apache process i/o bound. It's
now CPU bound. (or should be under heavy load)
I think for most of us this is usually not the case, since most
On Wed, 26 Apr 2000, Leslie Mikesell wrote:
According to Perrin Harkins:
On Tue, 25 Apr 2000 [EMAIL PROTECTED] wrote:
With mod_proxy you really only need a few mod_perl processes because
no longer is the mod_perl ("heavy") apache process i/o bound. It's
now CPU bound.
On Thu, 27 Apr 2000, Matt Sergeant wrote:
Is there any benefit of mod_proxy over a real proxy front end like "Oops"?
There's a big study of proxy servers posted at
http://bakeoff.ircache.net/N02/. There are some expensive ones with
dedicated hardware that perform well. Of course, there are
On Thu, 27 Apr 2000, bahwi wrote:
I have a question about OOP, Inheritance, and mod_perl. I have OO
pre-loaded module A, which clients B, C, and D use. Each one get's
their own, and the configuration variables are different. My question here
is how much memory does this take up? Is the
On Thu, 27 Apr 2000, Dan McCormick wrote:
If you split things between a proxy and a mod_perl server, the first hit
would have to go through to the mod_perl server to initiate the session,
but subsequent requests which may not need the session info could be
sent to the proxy. Is that
On Mon, 8 May 2000, Wim Kerkhoff wrote:
On a fresh restart of apache, my processes are about 20 ~ 25 MB each,
which is about normal for mod_perl (as far as I know). However,
within a few hours (with little use except by our development team),
the size is up to 40MB, and by the end of the day
On Mon, 8 May 2000, Pierre J. Nicolas wrote:
I've been tyring for the past several days to stop the
infamous "Undefined Subroutine" messages. I implemented
"solution 2" by adding a "require" statement in all of my scripts.
That still didn't do it.
Why do you have this problem in the first
Autarch wrote:
On Mon, 8 May 2000, Perrin Harkins wrote:
Some apps that use Apache::Session, like Embperl and Mason, have chosen
to rely on cookies. They implement the cookie part themselves.
Apache::Session has nothing to do with cookies.
I don't know about Embperl but Mason
On Tue, 9 May 2000, Jeffrey W. Baker wrote:
If you are using an RDBMS which has atomic operations, you can turn off
locking in Apache::Session with no effect.
I think every RDBMS I've seen, includig MySQL, guarantees atomicity at
this level.
On the subject of locking, I think that the daemon
On Tue, 9 May 2000, Wim Kerkhoff wrote:
On 09-May-2000 Perrin Harkins wrote:
On Mon, 8 May 2000, Wim Kerkhoff wrote:
On a fresh restart of apache, my processes are about 20 ~ 25 MB each,
which is about normal for mod_perl (as far as I know). However,
within a few hours (with little use
On Tue, 9 May 2000, Jeremy Howard wrote:
Murali said:
As I understand from this discussion we have 2 methods involving creating a
session-server which will store all session data.
a) NFS mount a server which will store all session data
b) Have a DB in this server which stores this data.
On Thu, 11 May 2000, Martin Wood wrote:
Our Apache::Registry CGIs need access to a dozen or so core modules - is
there an elegant solution to loading these without seeing a dozen or so use
statements at the head of the script?
Yes. As Vivek pointed out, you can move them all into a
On Mon, 15 May 2000, raptor wrote:
My question is instead of using two Apache servers OR Apache+proxy scenario
(static vs dynamic pages) will it be possible to leave static pages to kHTTPD
and run only one APACHE server.
It will, but you're missing part of the benefit from the proxy
On Mon, 15 May 2000, Wang, Pin-Chieh wrote:
I am installing Apache::SSI under Mod_perl..
When I ran make test I have permission denied when it trying to start httpd
, therefore the test failed.
It doesn't work for me either. I think Ken was going to make this test
optional. Anyway, if
On Mon, 15 May 2000, Ken Williams wrote:
I'd prefer to figure out why the test is failing, because most of the real
testing is done using that test. But it's difficult because I've never seen
the test fail.
Looks like the problem lies in this line in t/real.t:
my $HTTPD =
On Tue, 16 May 2000, William Deegan wrote:
If autocommit is not set and a script exits the transaction will be
rolled back.
The question I have is when the database handle is re-used will the
autocommit still be unset if the script that set it errors out?
Yes, Apache::DBI doesn't touch
I know I'm late to this party, but I thought I'd point out a couple of
options:
- The Search::InvertedIndex module on CPAN (uses dbm files, I think).
- The DBIx::TextIndex module on CPAN (uses MySQL).
- The WAIT module on CPAN (uses dbm files).
- Glimpse: http://webglimpse.org/.
- Swish++:
On Thu, 18 May 2000, Niral Trivedi wrote:
Now, with Apache::DBI, we'll have one DBI handle per child process
during the server startup. Now, let's say one child has started its
processing and hasn't served any request yet. Now, first request comes
in and it will look for DB handle, which is
On Fri, 19 May 2000, David Larkin wrote:
Can anyone help explain why PERL gives such a large memory
footprint advise how to get around it.
Your array might be smaller if you pre-extend it to the size you need (see
perldata). You could also look at some of the sneaky bit vector modules
on
On Sat, 13 May 2000, Greg Cope wrote:
: Likewise with sessions. Even if you load balance across multiple machines
: you don't need to access a session database on every request. Most load
: balancing systems have something so they'll send the seme "session"
: (typically ip address) to the
On Mon, 22 May 2000 [EMAIL PROTECTED] wrote:
It seems the Apache::Session::DBI isn't actually changing anything
in the database, since next time I tie the session the only thing
it has is the _session_id I tied it with in the first place.
Keep in mind that Apache::Session only writes to the
On Mon, 22 May 2000, Mark Holt wrote:
Newbie to the list, apologies if this is a FAQ, but I checked the
archives...
I built a modperl-enabled server, (Apache/1.3.9 Ben-SSL/1.37 (Unix)
mod_perl/1.21) and have been running it for some time. I have the
mod_perl as a shared module, and I
On 22 May 2000, Edgardo Szulsztein wrote:
Now, I would like to make it work with the postgresql database server. How
could I do it (I don't like the list, but I couldn't find this information in
the documentation).
See the Apache::iNcom::Session module on CPAN. It does exactly this.
-
On Mon, 22 May 2000, Ian Kallen wrote:
I've done everything I can think of to shore up any DB connection
flakiness but I'm still plagued by errors such as these:
DBD::Oracle::db selectcol_arrayref failed: ORA-12571: TNS:packet writer
failure
...this is only a problem under mod_perl, outside
On Mon, 22 May 2000, Mark Holt wrote:
I have tried pulling in *any* DBI or DBD module one at a time and ALL
of them cause the server to fail to start. There is no error log
message.
Does DBI work for you from command-line scripts? Did the tests for
DBD::mysql pass?
Is there an order I
I don't quite understand what you're trying to do, but what you have
here is a closure and it looks like you want a real global instead.
(man perlref if "closure" doesn't ring a bell.) Some of your language
makes it look like you may have some confusion between global and
lexicals. At any
On Wed, 24 May 2000, Marc Lehmann wrote:
On Wed, May 24, 2000 at 12:52:37AM +0300, Stas Bekman [EMAIL PROTECTED] wrote:
You can control what's being reloaded and what's not:
http://perl.apache.org/guide/config.html#Apache_Restarts_Twice_On_Start
On Wed, 24 May 2000, Marc Lehmann wrote:
I was under the impression that you cannot configure Apache from a
PerlRequire. If that is not the case (and somehow works) I'd really like
to get away from perlsections.
You can only configure Apache from Perl sections, but you can load all
your
On Thu, 25 May 2000, Barry Robison wrote:
You may want to check out http://www.opensales.org/html/source.shtml,
rather than starting from scratch .. I haven't used it, but it's a
Perl based GPL commerce solution.
Or you may not. It doesn't support mod_perl. I'd suggest looking at
Tallyman
On 25 May 2000, Randal L. Schwartz wrote:
I got no "no warnings". this is still 5.5.3 :)
There's always the time-honored
{
local $^W;
}
- Perrin
On Thu, 25 May 2000, Neil Conway wrote:
I'm probably a novice programmer, at least by the standards of
most of the people on this list. I'm 16, and since I haven't taken
Computer Science at university yet, I'm a bit lacking in 'formal
programming education'. I'd rather not form bad habits -
On Fri, 26 May 2000, amy wrote:
## second error
DBI::db=HASH(0x1ff304)-disconnect invalidates 1 active
statement handle (either destroy statement handles or call
finish on them before disconnecting) at
/usr/local/bin/apache/cgi-bin/lib.pl line 41.
##
I avoid this type of error by pushing
On Fri, 26 May 2000, Jeffrey W. Baker wrote:
I have released Apache::Session 1.51. The addition of the Oracle backing
store took less time than expected. It is included and tested in this
release. This is the only change from 1.50.
On Fri, 26 May 2000, Jeffrey W. Baker wrote:
A couple of notes on the Oracle storage module:
- Using "FOR UPDATE" forces the transactional lock model. Is it possible
to make this optional? The other modes allow the use of a "enforce data
integrity only" locking style which is
On Wed, 31 May 2000, Karl Djemal wrote:
I'm trying to get up to speed with mod_perl and have been playing around
with Apache::StatINC so that any perl modules I update get reloaded.
From what I can see in the error_log file it does get re-loaded, but the
changes don't seem to take effect
On Wed, 31 May 2000, DeWitt Clinton wrote:
My question is this -- has anyone written an implementation of the
Java Bean standard in Perl? I don't think we need to have a major
debate about the shortcomings of beans on the mod_perl list. But I am
wondering if anyone has pulled this off yet.
I have a perl (non-modperl) program that needs some input data. Currently,
it reads in the data by "require"ing another perl script that has
statements to set the variables (as global variables). I did it this way
so that I can easily edit the include file if I want to change values,
and I
Philip Mak wrote:
I can't seem to get "do" to work. I did this:
my $series_name;
do "series_$series.i"; # -- note include filename depends on a variable
print "$series_name\n";
Your lexical ("my") variable in the same scope is taking precedence, and
the "do' is not allowed to see lexicals
Karl Djemal wrote:
Thanks for the reply. I'm not quite sure what you are asking here - may be
what I asked wasn't to clear.
I was asking if you import any subs or variables from MyModule.pm. If
you don't know what I mean, then you probably don't.
I'm using Apache::Registry as a PerlHandler
On Thu, 1 Jun 2000, Niral Trivedi wrote:
Now, only way to remove this information from backing store is to do
'tied(%session_hash)-delete', Am I right? I mean is there any way we
can remove these entries by setting 'time_out_interval' or something
like that??
Your cron job idea sounds
On Thu, 1 Jun 2000, Marc Lehmann wrote:
It's easy, I just have to kick my ass each time I want to use a lexical
for data abstraction and use a package variable instead, with only the
exception that I have to be very careful that I never re-use the same
name. This is quite difficult for code
On Thu, 1 Jun 2000 [EMAIL PROTECTED] wrote:
So my questions are: how to save session info from page 1 and allow a
web server that services age 3 to access it.
Have a look at Apache::Session. Use a database or files over NFS if you
have a cluster. I've had better luck with databases than NFS.
On Sat, 3 Jun 2000, Stas Bekman wrote:
* install_driver (2):
DBI-install_driver("mysql");
I've never seen that before, and it isn't in the DBI perldoc. Is it safer
than "use DBD::mysql;"?
- Perrin
On Sat, 3 Jun 2000, Stas Bekman wrote:
correction for the 3rd version (had the wrong startup), but it's almost
the same.
Version Size SharedDiff Test type
1 3469312 2609152 860160
On Tue, 6 Jun 2000, Drew Taylor wrote:
I know about tied hashes - Thanks Damien for your excellent book! - but
there is a performance penalty. How big is this penalty? Is it worth
using tied hashes? Versus an array of hash refs?
They're a lot slower than normal data structures, or even normal
On Wed, 7 Jun 2000, Stas Bekman wrote:
And the results are:
single_print: 1 wallclock secs ( 1.74 usr + 0.05 sys = 1.79 CPU)
here_print:3 wallclock secs ( 1.79 usr + 0.07 sys = 1.86 CPU)
list_print:7 wallclock secs ( 6.57 usr + 0.01 sys = 6.58 CPU)
multi_print: 10
On Wed, 7 Jun 2000, Matt Sergeant wrote:
On Wed, 7 Jun 2000, Eric Cholet wrote:
This said, i hurry back to s/"constant strings"/'constant strings'/g;
Those two are equal.
Yes, although it's counter-intutive there's no real performance hit
from double-quoting constant strings.
The one
On Thu, 8 Jun 2000, Bernhard Graf wrote:
Chris Winters wrote:
The newest version of Template Toolkit (currently in alpha) supports
compiling templates to perl code. See about 2/3 of the way down the
the README at www.template-toolkit.org. Why reinvent the wheel? :)
Also the current
On Thu, 8 Jun 2000, Greg Cope wrote:
My original question was not related to templates (I'll use embperl for
that)
Well, I'm confused now. You'll use Embperl for templates but you're not
using Embperl for templates?
- the area I was trying to explore was how to read a template (all
HTML
On Thu, 8 Jun 2000, Matt Sergeant wrote:
The one that bugs me is when I see people doing this:
$hash{"$key"}
instead of this:
$hash{$key}
Those two now also result in the same code. ;-)
But the former is just ugly.
Sometimes it's worse than just ugly. See the entry in
Turn on Apache::DBI's debugging messages and see if it's working
properly.
- Perrin
On Wed, 7 Jun 2000, Hui Zhu wrote:
Hi Everybody:
I got big problems. Same query and same script. Sometimes it works fine
but sometimes i get the following
errors (i am so frustrated, have no idea what i
On Thu, 8 Jun 2000, Greg Cope wrote:
- the area I was trying to explore was how to read a template (all
HTML with a few !--TAGS-- in it) and the sub in the new content.
Embperl would work fine for that, but it's overkill. Your substitution
approach is slower than compiling to perl
On Fri, 9 Jun 2000, Drew Taylor wrote:
I really like the fact that templates can be compiled to perl code
cached. Any others besides Mason EmbPerl (and TT in the near future)?
Sure: Apache::ePerl, Apache::ASP, Text::Template, and about a million
unreleased modules that people wrote for their
On Fri, 9 Jun 2000, Roger Espel Llima wrote:
I'm developping yet another toolkit for templating under mod_perl (don't
flame me YET, it does things that are significantly different from
Mason, Embperl and others: namely completely separation of data and
code, good multilingual support, and a
Here's something that might be obvious to others but took me a while to
figure out:
If you want to get useful profiling information, you need to initialize
the debugger before your modules get compiled. If you pull in your
modules from startup.pl, you can accomplish this by putting a block like
On Sun, 11 Jun 2000, Matt Sergeant wrote:
There are posts in the archive about this. Here's a quick summary:
You can make Java slow. You can make mod_perl slow.
Java (servlets, jsp, etc) can use a lot of memory. mod_perl can use a lot
of memory.
Servlets can be very fast. mod_perl can be
1 - 100 of 1288 matches
Mail list logo