That only solves half the problem. Since it is a virtual directory, how
will Apache::Registry know where 'cgifile' really exists so it can run it?
For example:
http://www.mydoamin.com/dirA/dirB/cgifile
dirA and dirB don't really exist. If 'cgifile' is stored somewhere else
how will
Thanks. It seems like I would want to write a PerlTransHandler. However I
don't want to change the filename until after the authorization phase. Can
I change the uri to filename mapping at the end of the authorization phase
but before the content handler phase?
Thanks.
-Todd
On Mon, 9 Oct
On Mon, 9 Oct 2000, Todd Chapman wrote:
That only solves half the problem. Since it is a virtual directory, how
will Apache::Registry know where 'cgifile' really exists so it can run it?
Either put it under your docroot or use the standard Alias stuff:
Alias /perl/ /home/httpd/perl/
I am servicing requests from a virtual document tree. Most of the time I
want the request to be serviced by a PerlHandler module I wrote. However,
if the requested filename is 'cgifile' I would rather have
Apache::Registry handle the request, but since this is a virtual document
tree the CGI
martin,
check out:
http://www.ora.com/catalog/wrapmod/errata/wrapmod.699
Well, I guess fair is fair, the correction for page 146 (unless = if)
was there, I should've done my research better ...
anyway I do seem to be needing 'use Apache::Constants qw(:common);' to
run under strict
"DT" == Drew Taylor [EMAIL PROTECTED] writes:
DT after changing "unless" to "if". Can anyone check what Apache defaults
DT to if no status code is returned? I'm guessing it's "OK".
In perl, if you have no explicit return statement, the last value
computed (or returned from another sub call)
Hi,
This is in regards to Ken Williams' Apache::Compress module (announced
here on August 22).
I've installed it, along with zlib, Compress::Zlib, and Apache::Filter,
and am having a couple of issues getting it running -- wondering if anyone
has any clues.
perl is version 5.004_04, apache is
On Mon, 2 Oct 2000 15:28:09 -0400 (EDT), kevin montuori wrote:
bc Static .html files aren't compressed at all (but do come through
bc as text/html).
do you have
SetHandler perl-script
in there somewhere?
Kevin,
This fixes static html completely! It's
hi,
I've been developing with mod_perl for a while, but, thanks to
Richter's Embperl module and the excellent backwards compatibility
(regarding CGI.pm) I had never got anywhere near Apache::Request -- for
production, that is.
Now I have this very silly question, that I've
this very silly question, that I've boiled down to this
little snippet of code (which carries a remakable resemblance to the
example found in page 146 of the Eagle Book):
--
#!/usr/bin/perl -w
use strict;
use Apache::Constants qw(:common);
my $r = Apache-request;
$r
hanks,
Tim Tompkins
--
Programmer / Staff Engineer
http://www.arttoday.com/
--
- Original Message -
From: "martin langhoff" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 02, 2000 1:37 PM
Subject: $r
... it made no difference ... :(
Drew Taylor wrote:
I believe all you need to add is "return OK;" after your print
statement. Without that, Apache doesn't know what the status of the
request should be.
martin langhoff wrote:
... it made no difference ... :(
Drew Taylor wrote:
I believe all you need to add is "return OK;" after your print
statement. Without that, Apache doesn't know what the status of the
request should be.
Doh. I missed what Tim caught. I believe Apache will assume
On Mon, 2 Oct 2000, martin langhoff wrote:
Now shouldn't it be an 'if' instead of an 'unless'?
yes, it should be an `if'. your script works fine for me with that
change.
Thanks Tim and all,
my gathering is that the sample script on page 146 of the Eagle:
- needed a 'use Apache::Constants(:common);' line
- needed a 'return OK;' line at EOF
- had an 'unless' that should've been an 'if'.
for-the-record, I did check
doug, lincoln,
looks like www.modperl.com needs a link to errata.
martin,
check out:
http://www.ora.com/catalog/wrapmod/errata/wrapmod.699
martin langhoff wrote:
Thanks Tim and all,
for-the-record, I did check www.modperl.com looking for an
errata.
marks down for O'Reilly
experts that the following is allowed in Perl
OO modules and does not conflict with mod_perl.
The question belongs to the constructor. I have $self as a class reference on
the brandnew object. Now in the rest of my constructor I do some Querys on a
MySQL database to get information about
from some experts that the following is allowed in Perl
OO modules and does not conflict with mod_perl.
The question belongs to the constructor. I have $self as a class reference on
the brandnew object. Now in the rest of my constructor I do some Querys on a
MySQL database to get
Does anyone know where in Apache's code it prints the outbound response
message size in hex?
Example (the size is 112 on this particular message):
HTTP/1.1 404 Not Found
Date: Fri, 29 Sep 2000 13:58:56 GMT
Server: Apache/1.3.6 (Unix)
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
To Whom It May Concern,
I have a question with regards using LD_PRELOAD (or something more appropriate) to
load libiconv_plug.so and override any other iconv implementation. (Would be grateful
is someone can help).
I'm running Apache with mod_perl 1.24 on Solaris 2.6. I'm using XML
how about using mod_so's LoadFile directive?
On Thu, 28 Sep 2000, Rajit Singh wrote:
To Whom It May Concern,
I have a question with regards using LD_PRELOAD (or something more appropriate) to
load libiconv_plug.so and override any other iconv implementation. (Would be
grateful is someone
that the following is allowed in Perl
OO modules and does not conflict with mod_perl.
The question belongs to the constructor. I have $self as a class reference on
the brandnew object. Now in the rest of my constructor I do some Querys on a
MySQL database to get information about the authenticated user
On Wed, 27 Sep 2000, B. Burke wrote:
When I set PerlSendHeader to Off in my perl.conf it doesn't send headers,
which
is good. The bad part is that it seems to break socket persistence for some
reason.
When I have PerlSendHeader set to On, I can open a socket with my test client,
and
what is your test client?
I wrote a command line client that just sends/receives basic messages for testing.
I have been opening a socket and sending this:
GET /perl/myscript HTTP/1.1
Connection: Keep-Alive
Host: myhost.mydomain.com\n\n
It worked as expected - I was able to keep the socket
When I set PerlSendHeader to Off in my perl.conf it doesn't send headers,
which
is good. The bad part is that it seems to break socket persistence for some
reason.
When I have PerlSendHeader set to On, I can open a socket with my test client,
and make multiple queries on the same socket.
Any
On Mon, 25 Sep 2000, B. Burke wrote:
I've been able to basically remove the response headers by removing the
functionality
of ap_sen_header_field() before compiling Apache, but it would be nice to
you don't have to remove anything, just don't call $r-send_http_header
and make sure
use tagged, delimited fields (pipe delimited instead of delimited).
I have written a socket server gateway to act as a protocol converter,
to convert
our API's requests into HTML GET's (and also convert the HTML output
into our
API's response format).
My question is this. Is it possible using
nverter,
to convert our API's requests into HTML GET's (and also convert the
HTML output into our API's response format).
My question is this. Is it possible using mod_perl for me to
incorporate the protocol conversion into Apache itself? In other
words, can I strip out the need for HTML
On Tue, Sep 12, 2000 at 04:34:28PM +0100, David Hodgkinson wrote:
"Eric Cholet" [EMAIL PROTECTED] writes:
well then we're a long shot away, and so are many French natives :)
Nah, we won't be that demanding, lest we scare him away from the,
erm, "most beautiful city in the world".
"Eric Cholet" [EMAIL PROTECTED] writes:
well then we're a long shot away, and so are many French natives :)
Nah, we won't be that demanding, lest we scare him away from the,
erm, "most beautiful city in the world".
What? Bath?
Dave // Found communication in Paris much improved with a
Hi .. I hope someone can help me with this problem.
I've been assigned to install Apache::ASP and mod_perl so that one of our
client's can use a program called Hyperseek.
My biggest problem is that I'm not very familiar with the server or the Unix
environment.
Over the past few days, I've
Anyone know why a browser would send something like this?
HTTP_ACCEPT_LANGUAGE=en-us,x-ns1MKtfdqbuNhQ;q=0.4,x-ns2r2e09OnmPe2
the x-ns1 and x-ns2 stuff look like base64 encoded 8-byte blocks, almost as if
it's some kind of key exchange or key leaking mechanism.
--
greg
On 11 Sep 2000 [EMAIL PROTECTED] wrote:
Anyone know why a browser would send something like this?
HTTP_ACCEPT_LANGUAGE=en-us,x-ns1MKtfdqbuNhQ;q=0.4,x-ns2r2e09OnmPe2
the x-ns1 and x-ns2 stuff look like base64 encoded 8-byte blocks, almost as if
it's some kind of key exchange or key
of headers. So if I send to your server this header:
HTTP_ACCEPT_LANGUAGE=Stas_is_learning_french_please_speak_slowly;q=0.99,en-us;0.01
Will you also ask why Stas is learning french? :) :) :) I ask myself the
same question
alternate content in a language that isn't defined by the IANA list.
Will you also ask why Stas is learning french? :) :) :) I ask myself the
same question :)
:-)
--
Matt/
Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email
HI Stas,
On Mon, 11 Sep 2000, Stas Bekman wrote:
Will you also ask why Stas is learning French?
Chercher la femme?
[50 Jahre Musik mit Hazy Osterwald]
73,
Ged.
"GWH" == G W Haywood [EMAIL PROTECTED] writes:
GWH HI Stas,
GWH On Mon, 11 Sep 2000, Stas Bekman wrote:
Will you also ask why Stas is learning French?
GWH Chercher la femme?
Most likely because the people in Paris demand you speak to them in
perfect French. High school level French is not
GWH HI Stas,
GWH On Mon, 11 Sep 2000, Stas Bekman wrote:
Will you also ask why Stas is learning French?
GWH Chercher la femme?
Most likely because the people in Paris demand you speak to them in
perfect French. High school level French is not accepted ;-|
well then we're a long
Greetings all,
This is an extremely broad question, but I was wondering if any of you
knew, off the top of your head, of any circumstances in which the
generation of custom response codes would be ignored. Say...
A subroutine is called in the case of an error that logs the warning
On Thu, 31 Aug 2000, martin langhoff wrote:
...
As you may have imagined, it maybe trivial to do in Apache (I haven't
done it yet, but I hope it is).
I usually do it with mod_rewrite. Something like
RewriteEngine on
RewriteCond %{HTTP_HOST}!^www\.ek\.dk$
On Mon, 4 Sep 2000, Warren D. Johnson wrote:
Thank you for the followup. My original thought was that StatINC reloaded
modules as appropriate and that each child should share a common cache of
pre-compiled scripts. Since that is not the case, it makes developing
larger applications in
On Sun, 3 Sep 2000, Warren D. Johnson wrote:
Here is my problem: StatINC seems to work fine several times after I
restart the server but then at some point begins to act funky. I'll reload
a page and either/or a source file will get reloaded every time (despite
it's time not changing) or
Matt,
Thank you for the followup. My original thought was that StatINC reloaded
modules as appropriate and that each child should share a common cache of
pre-compiled scripts. Since that is not the case, it makes developing
larger applications in mod_perl a bit trickier. Trickier because now
Niral Trivedi wrote:
I know that perl 5.6 does support to some extent utf8 and unicode.. but
can somebody point to me some site or resources which has examples on
that??? Because I couldn't find any useful information from the perldoc
for utf8 or perlunicode..
Regards all,
I've installed mod_perl and latest version of apache. Everything seems to
be working fine.
I have set StatINC as the PerlInitHandler in my httpd.conf so as to stat()
file and libraries which are are dependencies of scripts handled by the
modperl handler. In addition, I have a
Problem:
For Authentication and Group Authorization, changes in the database will be
reflected without restarting Apache. Not so for the URI Directory part of
it.
I have thought about restarting Apache from time to time, but thinking there
must be a "lazier" way with performance
I am trying to implement a database driven solution for a small university
website (300+ users) and quite happy with Authentication and Authorization
packages provided by mod_perl. However, there doesn't seems to be a solution
to dynamically protect a directory without restarting Apache.
Thanks guys!
(Michael Hanisch, Michael Robinton, Jonathan Leto)
I think the session key idea will work for me, just hoping there are a
generic solution out there. This is a typical problem why people turn to
LDAP, but LDAP is just so horrible to administer.
Regards,
Simon Wei
Hi:
ReHi
On Fri, Sep 01, 2000 at 07:45:46PM -0400, Paul J. Reder wrote:
I am working to update my instructions for getting mod_perl working as a DSO
on AIX. I see that there is a recommended patch for dl_aix.xs to get XS
working.
I am currently testing on AIX 4.3.3, Apache 1.3.13-dev, and IBM's IHS
On Thu, 31 Aug 2000, Aaron Johnson wrote:
I don't work on Oracle so I will speak from my experience with MySQL. MySQL
servers time out after the 8 hour standard disconnect for inactivity (this
can be adjusted in your my.conf file). To compensate for this we now run our
own connect checks
Perrin Harkins wrote:
On Mon, 28 Aug 2000, Chris Brooks wrote:
I went back through the documentation on Apache::Session,
Apache::Session::DBIStore, and Apache::DBI, and I haven't found a
problem in the way we have implemented this. Does anyone else have
suggestions, or has anyone else
I would like to learn about the programming of mod_perl. While I am an ok
perl programmer, I know very little of c code. Can somebody suggest a (or
several) book that I can start to learn c from?
Thanks,
David
David Hajoglou [EMAIL PROTECTED] writes:
I would like to learn about the programming of mod_perl. While I am an ok
perl programmer, I know very little of c code. Can somebody suggest a (or
several) book that I can start to learn c from?
Why do you need C if you've got perl?
--
Dave
Well, if you must know, mod perl was programmed in c
On 1 Sep 2000, David Hodgkinson wrote:
David Hajoglou [EMAIL PROTECTED] writes:
I would like to learn about the programming of mod_perl. While I am an ok
perl programmer, I know very little of c code. Can somebody suggest a (or
David Hajoglou [EMAIL PROTECTED] writes:
Well, if you must know, mod perl was programmed in c
I knew this.
So?
--
Dave Hodgkinson, http://www.hodgkinson.org
Editor-in-chief, The Highway Star http://www.deep-purple.com
Apache, mod_perl, MySQL,
I would like to be able to read the internals of mod_perl (the module that
plugs into apache). I would like to understand how it works with apache
and to do this I need c coding skills. So, regardless of my reason for
wanting to learn c (though it does relate), does anybody have any
suggestions
David Hajoglou [EMAIL PROTECTED] writes:
I would like to be able to read the internals of mod_perl (the module that
plugs into apache). I would like to understand how it works with apache
and to do this I need c coding skills. So, regardless of my reason for
wanting to learn c (though it
I began teaching myself C using the following book:
"A Book on C"
by Al Kelley, Ira Pohl
ISBN# 0201183994
It will turn up if you do a search at amazon.
Hope this helps.
Jeff Jones
On Fri, 1 Sep 2000, David Hajoglou wrote:
I would like to be able to read the internals of
. Or is it?
the question:
Is it possible to tell BIND to catch *.domain.com and answer the same
ip?
the apologies:
I know. I know. I'm way off topic. Delete my msg ... I'm not a BIND
warrior, but a mod_perl developer bound to BIND woes ...
martin
into saying it knows as many domains as folders I want. Or is it?
the question:
Is it possible to tell BIND to catch *.domain.com and answer the same
ip?
Yes, I believe the entry is simply *.domain.com!
Then use mod_rewrite to map the right folder.
--
Matt/
Fastnet Software Ltd
martin langhoff [EMAIL PROTECTED] writes:
Is it possible to tell BIND to catch *.domain.com and answer the same
ip?
Plan A: Generate the zone files from the database.
Plan B: Use the beta of Bind 9 which, I believe, has database bindings
promised.
I've hacked around with something
On Aug 31, David Hodgkinson wrote:
martin langhoff [EMAIL PROTECTED] writes:
Is it possible to tell BIND to catch *.domain.com and answer the same
ip?
Plan A: Generate the zone files from the database.
Plan B: Use the beta of Bind 9 which, I believe, has database bindings
Jim Winstead [EMAIL PROTECTED] writes:
On Aug 31, David Hodgkinson wrote:
martin langhoff [EMAIL PROTECTED] writes:
Is it possible to tell BIND to catch *.domain.com and answer the same
ip?
Plan A: Generate the zone files from the database.
Plan B: Use the beta of Bind
Jim Winstead wrote:
plan c: use a wildcard record and move on to real problems. :)
Bummer! I had thought I actually had a real problem ...
gotta move on to find one !
martin [who can't believe this list's so great]
In the section on optimizing the db and prepare statements (in the
http://perl.apache.org/guide/performance.html url), the document discusses
creating a subroutine called "connect" in a package called package My::DB;
My question is if you have the
my $dbh = My::DB-connect;
statement
back connect since it assumes that the
connection is still present. Then at some random interval we get that
error message from apache. I'm out of ideas of what's causing this.
I guess I am missing the key to the question here :^)
I have some suggestions that can help, but I need to know which
On Thu, 31 Aug 2000 [EMAIL PROTECTED] wrote:
What I think is going on is that the script gets killed by Oracle for
being idle and tries to ping the connection, but the ping fails.
It is supposed to reconnect when the ping fails. I've had problems
getting reconnects to Oracle 8 working. The
I don't work on Oracle so I will speak from my experience with MySQL. MySQL
servers time out after the 8 hour standard disconnect for inactivity (this
can be adjusted in your my.conf file). To compensate for this we now run our
own connect checks for a valid dbh handle before it goes it all the
Matt Sergeant wrote:
Yes, I believe the entry is simply *.domain.com!
Then use mod_rewrite to map the right folder.
Yup. Beware though, there are certain issues you may need to think of if
you're going to be sending/receiving mail from these domain names. One
problem is the reverse name
Hi
Sorry I don't really remember the mail, I think it was because of the
DEBUG information that were missing in the Apache error_log.
There were many reasons why my Apache wasn't working with Apache::DBI
(not well compiled with mod_perl, http.conf not correctly set, .)
I wrote a little
Hello All,
Sorry for asking this question, but If you know any other mailing list
to post this message, please give me the address...
I know that perl 5.6 does support to some extent utf8 and unicode.. but
can somebody point to me some site or resources which has examples on
that??? Because I
Not strickly mod_perl so I've put on my flame retardent suit. I've seen
several references to Apache::ASP (and mod_perl) but haven't been able to
figure out quite what it does/provides.
The Apache::ASP pages says something to the effect 'Active Server Pages
using perl'.
My question is can I
,
Chris
Date: Tue, 22 Aug 2000 10:08:11 -0400
To: Perrin Harkins [EMAIL PROTECTED]
From: Chris Brooks [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: Apache::Session and performance question
Message-ID: [EMAIL PROTECTED]
Hi, thanks for the reply,
Yes, we are calling the module from http.conf
On Mon, 28 Aug 2000, Chris Brooks wrote:
I went back through the documentation on Apache::Session,
Apache::Session::DBIStore, and Apache::DBI, and I haven't found a
problem in the way we have implemented this. Does anyone else have
suggestions, or has anyone else experienced a similar
Perrin,
Thanks for the replies. Adding an index made a significant improvement on
performance -- it's still three or four times slower than without
Apache::Session, but much faster than without the index.
Thanks again,
Chris
Perrin Harkins wrote:
On Mon, 28 Aug 2000, Chris Brooks wrote:
I
any extra setup for it, other than Use Apache::File ();, which
is basically where it is choking.
I checked, File.pm IS located down in the /usr/local/lib/perl5 directory, in
the same directories as other modules that ARE working (like Constants).
Hate to ask what may be an obvious question, but anyon
: modperl newbie: question about unable to load File.pm
I am trying to learn mod_perl, and have been going through
the O'Reilly
book. Got to the "footer" example, where it just simply adds
some HTML to
the bottom of a page. not a big deal.
when I try to run it, I get issues wit
, August 24, 2000 3:40 PM
To: modperl
Subject: modperl newbie: question about unable to load File.pm
I am trying to learn mod_perl, and have been going through the O'Reilly
book. Got to the "footer" example, where it just simply adds some HTML to
the bottom of a page. not a big deal.
when I
Hello,
My understanding of perl is minimal, my understanding of mod_perl
non-existant but I have a (simple) question that I can't find anywhere
in the FAQ. Hopefully someone can help?
I've just installed the apache web server (1.3.12) on our Tru64 Unix box.
One of the applications we run (via
able to use the new httpd instead of the previous (Apache
only) httpd, the answer is an absolute yes!
Regards,
Rafael Caceres
At 09:36 AM 8/22/00 +0100, you wrote:
Hello,
My understanding of perl is minimal, my understanding of mod_perl
non-existant but I have a (simple) question that I can't
Hi all,
We have a fairly simple handler responsible for maintaining
state on our web server. Unfortunately, when we activate
it, server performance drops to about 1/10th of what it is
without. After going through the handler and commenting
out parts and benchmarking (rinse, repeat),
On Mon, 21 Aug 2000, Chris Brooks wrote:
We have a fairly simple handler responsible for maintaining
state on our web server. Unfortunately, when we activate
it, server performance drops to about 1/10th of what it is
without. After going through the handler and commenting
out parts and
Sorry if this has been asked before but I have been unable to find the answer
(not in perldoc, apache modules book, searching archives):
I would like my perl compilation and process errors to be written to an HTML
page if/when they occur, in the same way they are written to stdout when I run
The request object is $r
Craig
On Sat, 19 Aug 2000, Jay Strauss wrote:
Sorry if this has been asked before but I have been unable to find the answer
(not in perldoc, apache modules book, searching archives):
I would like my perl compilation and process errors to be written to an HTML
Alex Menendez ([EMAIL PROTECTED]) said something to this effect:
does anyone know how to get the output of a standalone cgi script from a
mod_perl module
I have tried all the subrequest stuff but I can't get it to work.
If all you are trying to do is get the raw output, use LWP and a
On Tue, Aug 15, 2000 at 03:26:03PM +0400, Vladislav Safronov wrote:
Hi,
Could you have a look at the lines and answer the question ..
---
sub foo {
my $dbh = shift;
my $sql = ...
my $sth = $dbh-prepare($sql);
$sth-execute;
$sth-finish;
}
===
Do I
On Tue, Aug 15, 2000 at 12:22:46PM -0500, Jay Jacobs wrote:
On Tue, 15 Aug 2000, Tom Mornini wrote:
It is my understanding of the DBI docs that you only need to call
$sth-finish when you DON'T fetch all the rows that the $sth has ready to
return.
From "Writing Apache Modules
On Wed, Aug 16, 2000 at 08:26:09AM +0200, Henrik Tougaard wrote:
From: Jay Jacobs [mailto:[EMAIL PROTECTED]]
On Tue, 15 Aug 2000, Tom Mornini wrote:
It is my understanding of the DBI docs that you only need to call
$sth-finish when you DON'T fetch all the rows that the
$sth has
On Tue, Aug 15, 2000 at 03:26:03PM +0400, Vladislav Safronov wrote:
Hi,
Could you have a look at the lines and answer the question ..
---
sub foo {
my $dbh = shift;
my $sql = ...
my $sth = $dbh-prepare($sql);
$sth-execute;
$sth-finish
From: Jay Jacobs [mailto:[EMAIL PROTECTED]]
On Tue, 15 Aug 2000, Tom Mornini wrote:
It is my understanding of the DBI docs that you only need to call
$sth-finish when you DON'T fetch all the rows that the
$sth has ready to
return.
From "Writing Apache Modules with Perl and C":
From: Vladislav Safronov [mailto:[EMAIL PROTECTED]]
What can you say about this code? is it ok (overwriting
previous handle)?
==
sub foo {
my $dbh = shift;
my $sql1 = "select *...
my $sql2 = "select *...
my $sth = $dbh-prepare($sql1);
$sth-execute;
Well, summarizing all the answers and assuming using Mysql
1. $sth-finish should be used if (and ONLY if) the
the returned data (any SELECT, but not INSERT, UPDATE?)
has not been fetched ALL and $sth is going to be
overwritten..
2. $sth (defined as 'my') should not call finish before
does anyone know how to get the output of a standalone cgi script from a
mod_perl module
I have tried all the subrequest stuff but I can't get it to work.
Apache seems to parse the cgi file once a handler has been called. simply
writing a handler that returns DECLINED every time it is called
Hi,
Could you have a look at the lines and answer the question ..
---
sub foo {
my $dbh = shift;
my $sql = ...
my $sth = $dbh-prepare($sql);
$sth-execute;
$sth-finish;
}
===
Do I always need to call $sth-finish? Wouldn't it be automaticly called
when
sub
: Question about $sth-finish;
Hi,
Could you have a look at the lines and answer the question ..
---
sub foo {
my $dbh = shift;
my $sql = ...
my $sth = $dbh-prepare($sql);
$sth-execute;
$sth-finish;
}
===
Do I always need to call $sth-finish? Wouldn't
On Tue, 15 Aug 2000, Vladislav Safronov wrote:
Hi,
Could you have a look at the lines and answer the question ..
---
sub foo {
my $dbh = shift;
my $sql = ...
my $sth = $dbh-prepare($sql);
$sth-execute;
$sth-finish;
}
===
Do I always need to call
From: Vladislav Safronov [mailto:[EMAIL PROTECTED]]
sub foo {
my $dbh = shift;
my $sql = ...
my $sth = $dbh-prepare($sql);
$sth-execute;
$sth-finish;
}
===
Do I always need to call $sth-finish? Wouldn't it be
automaticly called when
sub foo ends (when
On Tue, 15 Aug 2000, Vladislav Safronov wrote:
Hi,
Could you have a look at the lines and answer the question ..
---
sub foo {
my $dbh = shift;
my $sql = ...
my $sth = $dbh-prepare($sql);
$sth-execute;
$sth-finish;
}
===
Do I always need
On Tue, 15 Aug 2000, Vladislav Safronov wrote:
"my" (perl's my) variables doesn't always get destoyed, does it Perl's
documentation say that "my" vars are the most safe since they get destroyed
when they get out of scope ...
I said this was a bug in Perl, although I don't think that
Matt Sergeant [EMAIL PROTECTED] wrote:
This can be demonstrated with a very simple object class with a DESTROY
method. There's a message somewhere in the p5p archives about this from
me.
That's
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2000-03/msg00604.html
to save anyone else
601 - 700 of 956 matches
Mail list logo