Hi there,
sorry for this "beginner question".
no bother - RequestNotes is
pretty new itself :)
I use Apache::Request (no more CGI.pm), and it's
fine for me (I use Apache::Registry for my scripts).
So, what are the diff betwenn Request and
RequestNotes ?
Is it useful for perl scripts running under
Registry, i.e no Apache handler for the moment
Useful only for handlers ?
RequestNotes does the job of
making Apache::Request calls for you - albeit slightly differently than you
are probably used to in your scripts, hence the different looking
interface. It also uses Apache::Cookie to gather cookie data, decreasing
your work yet again. If you look at the code, you'll find it rather
simple...
You needn't use handlers to
gain from using RequestNotes. Personally, I've given up on calling
Apache::Request directly anymore - I thought it made little sense (for me) to
copy the same set of method calls for each Registry script when the mod_perl
API allows for better, more convienent
things...
I hope it works for
you.
I have another question, no connection from the previous
one:
I believe using
open FH "<tweety.conf";
is in fact a call to the shell. Right ?
So, in mod_perl, I prefer not to call the shell, so
is
$fh= new IO::File($filename, "r");
a better solution ?
for a mod_perl solution, try using Apache::File (see
the man pages). Keep in mind that you need to have built mod_perl with
PERL_FILE_API=1 (or EVERYTHING=1)
HTH
--Geoff
tia,
kktos