This isn't specific to Apache:ASP, but I've seen a lot of good advice
here, and hopefully someone has already been through this.

I was just wondering if anyone had used/knows of anything for perl
similar to phpLens.  I haven't actually used it, but it looks pretty
impressive.  I'd prefer to stick with perl, though.  I've searched
through CPAN, and on google, and haven't found anything obviously like
phpLens for perl, but there's a lot out there and I may have just missed
it.  The closest I think I've seen so far is DBIx::HTMLView, but it's
only for mySQL and mSQL (needs some extra coding for other DBD drivers -
I think).  

Basically, I'm just looking for some tools for generating things like
master/detail editing forms and backends.  I'm not looking to avoid
coding entirely, just for something to make life easier.  I don't need
all the bells and whistles of phpLens - though they would be nice.  And
I need to be able to make updates - simply displaying data is fairly
trivial, and I wouldn't need to ask for tools to do that - they are a
dime a dozen (though not all of the same quality!).

My alternative will probably be to use Oracle Forms (since we have a
site license for nearly every Oracle product for internal use only), but
I really want stick to perl if I can - mostly so I'm not tied to
Oracle's RDBMS in the future.  If you've read this far thanks.  If you
have suggestions, thanks a lot!

I suppose if there's nothing like phpLens, I'll either have to use
Forms, roll my own perlLens, or switch to PHP and buy phpLens.

Thanks again,

Jim

-----Original Message-----
From: constfilin [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 18, 2002 5:58 PM
To: [EMAIL PROTECTED]
Subject: A newbie question


greetings -

Let me start with a confession that I'm a newbie to perl and 
modules although I've got truckloads of experience on Windows ASP side.
Anyway, I need a bit of wizdom on how to use 
packages with Apache::ASP. Please read on.

In my httpd.conf I have 

PerlSetVar UseStrict 1
PerlSetVar UniquePackages 0

then I have a script - called "Login.pl" - that goes like this:

<html>
<% $Response->Include($Server->MapPath("/pls/Common/consts.pl"),"");
$Response->Write(blabla()."<BR>");
$Response->Write("A_VARIABLE=".$A_VARIABLE."<BR>");
%>
</html>

The contents of /pls/Common/consts.pl is

<%
our $A_VARIABLE = "whatever";
sub blabla {
    "blabla";
}
%>

Now, when I execute Login.pl, I get this error in errors_log 
"Variable "$A_VARIABLE" is not imported at Login.pl line 5."

I would like to get rid of this error without having 
"PerlSetVar UseStrict 0" in httpd.conf. But how? Using
"no strict" in Login.pls does not help, and all perl 
keywords "local", "my", and "our" are scoped to the current 
file, eval or block. Using no keyword at all to declare 
$A_VARIABLE gives the same error, but now in file consts.pl.

Should I really make a separate Perl package out of consts.pl and then
import the variables from package consts into Login.pl? This seems a
little absurd because per "PerlSetVar UniquePackages 
0" in httpd.conf, both Login.pl and consts.pl are in the same 
package, and there should be a simple way for any script in 
the package to use variables declared in other scripts of the 
package. Or am I wrong? Please let me know.

Thank you in advance

Constantine



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to