Without starting some type of CGI jihad, I'm hoping that the perl monks can point me in the right direction.

I've been writing LAMP applications for around 10 years now. I'm very comfortable with PHP. I can write a simple PHP application in a few minutes.

During this time, I've been doing more and more with perl, but only at the batch processing level. CLI stuff.

I realize I'm getting a lot of input from the choir, but I really think I'm ready to start a pretty large migration of all my PHP applications to perl CGI. But I'd be lying if it wasn't a little daunting, but it seems that it may be worth it. It certainly would be nice to use modules I've made and use on the command line in some web apps.

I haven't had great success in finding information about this type of migration. What are the potential gotchas and whatnot. Currently I run my own apache web server but I'm thinking of going with a web host. Is it going to be harder to find a host that supports perl?

Some information I've found so far TheSiteWizard : PHP vs Perl doesn't really seem to talk about perl much at all. And NetConcepts : PHP vs Perl seems to lean away from perl for web development, but I'm not sure I buy the reasons given. At least not today. This is from 2002 and I think it may be a bit dated. If anyone could point me in the right direction or perhaps share their conversion success story (or nightmare) I'd really appreciate it.

Update: from what perrin asked - Most of my own stuff isn't using MVC, but I have at times, rolled my own. I'm not a fan of templates like Smarty (mostly because I find them overkill for my needs). I'm not an OO purist. I sprinkle it in where I think it makes sense. I use mod_php in apache servers currently. Does this mean I'll be using mod_perl?

--
I used to drive a Heisenbergmobile, but every time I looked at the speedometer, I got lost.

In reply to Migrating from PHP to Perl for the web. by KurtSchwind

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.