Hello Jan,
Although I've never tried it, I can't imagine that it's any problem to mix
Perl and PHP. You've already got a "Hello World" PHP page working; try
generating the HTML for this page using Perl (via CGI for the sake of
simplicity) and you'll find out for yourself.
PHP is open source like Perl.
If you've already got a working "code reuse" culture in place where you are,
it's a lot more practical to reuse Perl code (either via modules, or less
formally) than to reuse PHP code. As you don't seem to be familiar with
PHP, I'm trying to think of something to compare PHP to - if you're familiar
with Microsoft's ASP functionality and ADO data access, then you can
probably compare PHP to the combination of ASP+ADO (in terms of "approach",
not necessarily functionality). I've been involved in quite a few IIS/ASP
projects, and the amount of code reuse that actually WAS achieved (as
distinct from the amount of reuse that was PLANNED to be done) was pretty
minimal.
To my mind, one of the big advantages of Perl over most other languages is
the elegance you can get when using it in large projects. Provided you
approach the project in a reasonable manner (e.g. expect that you're going
to spend a lot of time designing and coding objects and modules as opposed
to banging any old junk that works together), the code that you wind up with
is typically much more readable and maintainable than you get with most
other languages. Of course, my really crappy C++ and VB coding could also
be a big part of the problem...
One more thing that might be worth considering: if you've already got
business logic or other useful stuff coded in Delphi COM objects, you can
probably invoke the COM objects directly from Perl using (a module whose
name I've forgotten for the moment). The interface from Perl to COM will be
a bit fiddly, but you can abstract that out through a small module of your
own. I'm pretty certain there's no way of invoking COM objects direct from
PHP, so this aspect of reuse would go out the window.
Regards
Dave Mitchell
---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]