Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

However ...

Generally speaking, Perl does not pursue this objective in (what you call) “the PHP way,” and in my experience:   these days, neither does PHP(!).

The Perl language clearly espouses the notion of “separation of concerns,” where the logic of the application is studiously separated from the presentation.   Typically, a Perl-driven (and a modern-day PHP-driven ...) web-site is viewed as being:   “a program that takes a URL-string and possibly POST-data as input, and which generates an HTML string as output ... using a template to do so.”

If you are still “embedding programming_language into HTML,” then I cordially advise you that you should re-consider that approach.   Even though the PHP language started-out in this direction, it has since shifted away from it ... and, so should you.

P.S.:   I speak as someone equally conversant and up-to-speed in both language systems, not-to-mention many others.   “This is not my first rodeo.”   (As, as you will find, is the case for most of us around here.)


In reply to Re: Embeding Perl in HTML the PHP way by sundialsvc4
in thread Embeding Perl in HTML the PHP way by heatblazer

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-19 04:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found