Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re^5: Making Perl Monks a better place for newbies (and others)

by LanX (Archbishop)
on Jan 30, 2020 at 23:29 UTC ( #11112146=note: print w/replies, xml ) Need Help??

in reply to Re^4: Making Perl Monks a better place for newbies (and others)
in thread Making Perl Monks a better place for newbies (and others)


Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

  • Comment on Re^5: Making Perl Monks a better place for newbies (and others)

Replies are listed 'Best First'.
Re^6: Making Perl Monks a better place for newbies (and others)
by PerlGuy(Tom) (Acolyte) on Feb 01, 2020 at 18:08 UTC
    "What?". What?

    That was A joke.

    They say a joke isn't funny if it needs explaining?

    The issue regarding having to insert html code for paragraph breaks. I have difficulty understanding why, in a forum run by Perl programmers, I assume, or guess, probably coded in Perl, (I can't do view source on this Android device, but I assume) built by Perl programmers with Perl. such a nuisance issue, or issue about a nuisance exists.

    It looks like I'm not the first to bring this up. People have been complaining, and implementing work arounds for what looks like maybe decades. Making templates, and yours. Which I haven't gotten working.

    Posting in a forum involves CGI. (I assume I don't have to explain this, but anyway..) "Common Gateway Interface" (not computer generated imagery) Most often, at least in the old days, and, I'm guessing this forum was established long ago... Posts made to any kind of Perl forum were processed with the Perl module which handles the translation of the URL encoding in which the post is sent over the internet back into readable text. Splits on =, Replaces + with spaces and all that.

    A post to this forum, or any forum, is sent across the internet URL encoded.

    When it is received by the program it is posted to, by the forum, by's backend: (alert! URL coded text ahead)

    +like+that puts it (the URL encoded text) back to normal. So it can be read.

    In most forums, newline character, (the return for paragraph breaks) which don't render in html are converted to html paragraph breaks or BR or something so that they do.

    I would assume the reason this hasn't been fixed long ago, is because the "gods" are just having some fun. Certainly it's not because nobody knows how to do a substitution. It must be some kind of joke right?

    So I got to thinking, if we are going to NOT do the substitution to change the text input newline to html paragraph or line breaks. If someone thinks that's such a gas, well it would be loads more fun if we didn't bother with reversing the URL encoding either. (Try reading the following)


    In other words, the text is going through a lot of processing anyway, on the server, to strip out the URL encoding, perform split and do replacements. Text processing is what Perl excells at. Why not be processing paragraph breaks to be what they are or should be? It's not dangerous.


      "Posts made to any kind of Perl forum were processed with the Perl module"

      Perlmonks uses a fork of the everything engine. In case you don't know, isn't core and hasn't been a sane choice for web development for a long time. See CGI::Alternatives.


        Sorry, there was a typo in the link. Fixed now.

        Considerably modified for PerlMonks, I suppose.

        The project website is, something else now. No project activity in 5 years, apparently.

        Elsewhere in the forum, someone says it is "hard to get into". Is it compiled?

        I may download "everything engine" just out of curiosity. Don't know if anything can be done with it.

        Is it possible to install on a shared host?

        Dependencies? My web host will not install additional modules, but I can do a Perl dive and see what's there.

        Would there be any point?

        If there is some reason for keeping this, Maybe I'd agree, but I would prefer to focus on what I'm writing instead of having to deal with html formatting for every post, more than one paragraph.

        I did know was depricated. I would imagine text processing still goes on in more or less the same way somehow, somewhere.
      Legacy code and mass of data in old format
        I thought of that, but, such a change would not alter anything already rendered and posted on the site. I don't think.

        Workarounds, like a template might have to be changed, or might no longer be necessary. But nothing already on the forum would be altered.

        I can't see how anyway.

          A reply falls below the community's threshold of quality. You may see it by logging in.
        Its got nothing to do with that

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11112146]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2020-05-29 05:11 GMT
Find Nodes?
    Voting Booth?
    If programming languages were movie genres, Perl would be:

    Results (166 votes). Check out past polls.