the only problem i have with Perl is its lack of web oriented functions and abilities (like embedding perl in html, 'includes' as in asp and php etc)

Well I won't belabor the point of "lack of web oriented functions" other than to suggest looking at http://search.cpan.org and putting HTML into the search field.

However, I will underline a point made briefly by my fellow monks above:

Mixing Programming Code & HTML is a Bad Idea.

There are a lot of reasons for this, but the basic idea is that HTML coders & programmers are not usually the same people. They have different skill-sets & pay-scales.

Most companies are smart enough not to waste a programmer's salary to have someone make changes to web pages that are buried in code.

Further, it is an unofficial, but still hard & fast rule that programmers are not designers & designers are not programmers. As such you will find that companies tend to go outside to agencies when giving the web site a 'face lift.' This introduces a lot of people with no business having access to the programming code mucking around in the HTML.

Active Server Pages & Java Server Pages have the ability to embed code directly in them. However you will notice that JSP aithors are encouraged to encapsulate their code in JavaBeans to keep the HTML clean and ASP is currently migrating towards the '.NET' paradigm which is similar.

So I would also advise you, as others have above, to have a look at the Module in CPAN called HTML::Template. It's a very good starting point for thinking in terms of separation of logic & content with PERL.



Wait! This isn't a Parachute, this is a Backpack!

In reply to Re: embedding PERL in HTML by gregor42
in thread I love perl but.... by costas

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.