Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

If you are a complete n00b, you don't know where to find this "Perl interpreter" that you have to put on the first line after a cryptic "#!".

The shebang is optional, and generally unix specific. Unix users already know how it works, Windows users don't have to even care about it.

If your provider has set up PHP for you, you can rename a .html file to .php and you have your first working php script (well... in a sense that is).

That's *mod_php* in Apache that does this and has absolutely nothing to do with PHP's programming language. In exactly the same way, a server COULD be set up to handle .pl files (or .plp) using a mod_perl handler.

Also, in PHP if i want to create in image, i can do that out-of-the-box. No modules to find, download, make, make test, make install, import. It just works.

This is a matter of how the distribution is formed. This is different, but neither is better. I, for one, hate PHP's crammed together packaging of everything there is, because it means I have to upgrade PHP every time an important bug is fixed in one of its standard extensions.

I remember when i wanted to work with images in Perl i was totally intimidated by the amount of choice i had.

Choice is tough. If you can't handle this, you should simply not be programming at all, regardless of language. Programming is continuously making choices, at several levels. If you can manage it, then you will learn and benefit from it in more ways than you can think of at the time of your first module choice. Again, this has little to do with the programming *language*.

So what everybody already knows about PHP (its easy of use) is a forte. It is also probably why so many people use PHP.

It is at the same time the reason why many professionals avoid PHP like the Plague. Ease of use is nice, very nice even, but it should never get in the way of a professional. This is a recurring topic in the perl6-language mailinglist. PHP is a tool meant for and made by beginning programmers. It's a pity that most of them will never use their full brain capacity with it.

Juerd # { site => '', plp_site => '', do_not_use => 'spamtrap' }

In reply to Re^5: Perl/CGI Vs PHP Vs ASP by Juerd
in thread Perl/CGI Vs PHP Vs ASP by sk

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, 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, 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.
  • Log In?

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

    How do I use this? | Other CB clients
    Other Users?
    Others cooling their heels in the Monastery: (5)
    As of 2020-11-25 21:49 GMT
    Find Nodes?
      Voting Booth?

      No recent polls found