As with everyone else, I'm going to address the phase leading up to the question rather than the question. To take advantage of modern internet computing, you shouldn't be embedding your CSS in your HTML anyway. Ideally, it stays external which allows the client to download it once for your site, and not need to download it again. It can be better cached by proxies. It can be downloaded in parallel with the web page itself. Please. Don't.

That said, I've been guilty of embedding the CSS myself - but I'm feeling much better now.

Ok, I will answer your question now that I've gotten what I think is the important stuff out of the way. Yes, I'm sure that Perl and PHP can co-exist. Just like Perl and Java. Or shell and C. Or ... a whole host of other combinations. But you need to be careful that you don't end up needing to duplicate logic in each language. That's asking for problems - not only twice the likelihood of bugs, but that makes it infinitely more likely that you'll get the two out of sync when making changes/upgrades/bugfixes. This isn't a language thing - it's a cross-language thing. That said, just as it can be dangerous to mix, say, perl with a templating mini-language, as long as you're careful to keep each piece of logic in one and only one place, you'll probably be fine.


In reply to Re: Using Perl & PHP together by Tanktalus
in thread Using Perl & PHP together by punch_card_don

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.