Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.

Perl Monks Discussion

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

Do not post your Perl questions here!

This section is only for discussing issues pertaining to the PerlMonks web site itself. For example, asking about how things work, or offering ideas on how the site could be made better.

Unless the topic pertains to the PerlMonks web site itself, it does not belong in this section. If you're even the least bit unsure, check out Where should I post X? and The Perl Monks Guide to the Monastery, or ask in the chatterbox.

PerlMonks Discussions
RFC: Add profile field "emergency contact" or such like as
4 direct replies — Read more / Contribute
by jdporter
on Nov 28, 2023 at 16:15

    I has happened from time to time that some monks have expressed concern over the unexpected and prolonged absense of another monk. In at least one case, a monk contacted the gods to see if a reachout could be done. Unfortunately, we had to say no, because the contact information stored in the user profile consists only of an email address, and our policies explicitly state this this email address "is used only to send you your password". I believe that this creates — correctly — a strong expectation of privacy around this personal information.

    Therefore, I would like to propose the addition of an "emergency contact" field, which would probably normally be an email address, but with a different expectation as to its potential usage. The use of this field would be strictly optional. That is, as a user, you wouldn't have to put anything in it unless you want to.

    Alternatively, we could add a checkbox which, when checked, indicates that you are OK with site administrators using the existing email for "emergency contact" purposes, in addition to its current purposes (i.e. password recovery).

    Any thoughts?

    "such like as" is my homage to blazar.

    Today's latest and greatest software contains tomorrow's zero day exploits.
Levels of Monks: missing a row
3 direct replies — Read more / Contribute
by kcott
on Nov 24, 2023 at 22:08

    Assuming the Monk Level Summary in "Voting/Experience System" is correct, the table in "Levels of Monks" is missing a row:

    Level Privileges Title XP ΔXP Votes
    29   His Eminence 1000000 900000 100

    I'm not aware of any special privileges at this level. If there are, they should be added.

    Update: It would appear that there was some sort of misunderstanding regarding this post. Please see: "Re: Levels of Monks: missing a row [Clarification]".

    — Ken

New last hours of cb, CB stats
3 direct replies — Read more / Contribute
by cavac
on Nov 23, 2023 at 10:28

    As you might know, Tanktalus is retiring his CBStats/last hours of cb service. In agreement with gods and Tanktalus, i have taken over the duties of providing these services.

    I've been working hard to get the new codebase for last hour of cb and cb stats to work reasonably well. Stats are still a bit bare, though. And i'm pretty sure there are plenty of bugs.

    The new services (and the PM nodes) are run by the new chatterbot account. It's profile provides the official documentation, that is, it will provide it as soon as i get around to writing the damn thing. Technically, i'm running TWO of these services under the same account, one live, one for development/request-for-comment purposes. So, i might sometimes link to one of the dev pages and ask for feedback.

    All bug reports and feature requests and questions, at least for now, should go into this discussion, directly as an answer to THIS post (that way, CB automatically notifies me of any new messages). For short things, send me a private message. (Don't send it to chatterbot, i seldomly log into this account, except by way of perl scripts).

    Q: So this new CB stats is a downgrade?

    A: Yes and no. The stats are not as feature rich as the old ones. I'm working on that. But on the bright side, chatterbot has the ability to understand commands. Currently, there is only 1 useful one:


    This will generate a snapshot of the current "last hour of cb" and send you a link via private message. This may take about minute, and it currently doesn't always work. But when you see something in chatterbox that you like, give it a whirl.

    !cookie username

    Make chatterbot send a user a cookie. It's one of my test commands, so no guarantees that cookies will be, in fact, delivered.

    When you are not sure what commands are available, you can type !help in chatterbox.

    Command parsing and answering takes some time, because of the relatively long work cycles i've set in the software. (My software could run hundreds of calls to PM a seconds to make processing lightning fast, but running a denial-of-service attack on my favourite website would be counterproductive).

    PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP
Time offset after reply
1 direct reply — Read more / Contribute
by jo37
on Nov 14, 2023 at 15:40

    Noticed this twice:
    After replying to a node, both the original node any my reply show a strange time offset. This is shown right after submitting a reply:

    +/-Capture Groups (A:1) 2023-11-14 16:11 5 hours ago [Bod] Re: Capture Groups [0] 2023-11-14 16:29 5 hours ago [jo37]

    After a page refresh everything looks fine:

    +/-Capture Groups (A:1) 2023-11-14 21:11 25 minutes ago [Bod] Re: Capture Groups [0] 2023-11-14 21:29 7 minutes ago [jo37]

    Is this a known issue?


Pages slow to load
2 direct replies — Read more / Contribute
by hippo
on Nov 07, 2023 at 09:12

    Recently (maybe 3 weeks ago now) something appears to have changed which means that frequently pages which would have loaded quickly now load much more slowly. My experience has always been that this site is fast by the standards of the modern web - almost everything downloads and finishes rendering in well under a second. But the last few weeks has seen this significantly alter where some requests are taking a great deal longer - up to 15 or 20 seconds in some instances and very often 5 seconds or more. This is a noticeable degradation.

    Investigating via the in-browser tools shows that this is a delay in initial HTTP response. It's not DNS or the TLS setup, both of which happen very quickly, but after that the page response is the one which takes a long time to start. This can happen on any page and it doesn't seem to be some more than others.

    Hopefully whatever is causing this is easy to find and simple to resolve. It would be great to have the old, snappy performance back again. :-)

    This was discussed in the CB at the end of last week. Since that confirmed that it isn't just me affected, I'm raising it here for TPTB to be made aware.


CB stats, Last hour of CB
2 direct replies — Read more / Contribute
by Tanktalus
on Oct 28, 2023 at 13:40

    It is with some regret that I've come to realise that my return to Perl is unlikely, let alone any time soon. Since I've not really been an active participant in this community in years, I think it's prudent to accept the truth and pass on the torch.

    I will be shutting down the CB stats service I've been running for probably over a decade now by the end of the year. That service also provides last hour of cb, and so that will also disappear.

    While I'm more than willing to pass on the codebase I have to any who ask for it (my nick at, please be forewarned: it's not the cleanest code, and it was used to learn both Coro and DB2 (the latter of which for whom I worked at the time), and you'll probably want to re-seat it against a different database, the queries will be significantly less performant (sorry, but the joins are things that DB2 objectively does better than MySQL). I've gone on to do a lot of work against various databases, and what I learned writing this helped immensely, so I have zero regrets about doing it.

    Why am I no longer doing Perl? Well, it's simple. After working from home for 13 years, I was told to return to Toronto. That wasn't going to happen, so I had to find another job. Took me 18 months, during which time I managed to hold on to the work-from-home position. What I found was something doing C# on Windows. That job was, let's just say, sub-optimal, and a bit over a year later I found another local job still with C#, leading a small team. I've been here for over four years at this point. By January, it'll have been about 5 years since I did any significant amounts of Perl.

    Also, while working from home, I also helped out with an online game written in Perl, which got shut down shortly before I left the work-from-home position. I've come to realise that part of its cost in running came down to Perl - specifically, its lack of threading and co-routine support. (Yes, Coro works, but it's a serious hack to the point where I'm not confident in its future, but also its ability to support all the drivers and such that would be required for this.) I've wanted to re-start this game, but only recently embarked on this, and decided a better backend for this game would be .NET whose native support for threads and co-routines (async/await) is significantly stronger, but also because I'm already using that in my day job, so it becomes advantageous to stay ahead of the team that reports to me on technical matters this way. This serves to drop my chances at returning to Perl in any significant manner even further.

    I cannot guarantee a timely return to view any responses here. You're better off with email if you feel the need to reach me. While I, personally, don't see any harm in multiple monks having their own CB scrapers and CB stats generators, you will definitely need the gods approval to take over the last hour of cb, as they will have to assign ownership to someone.

Missing 'in reply to...' And 'in thread....'
5 direct replies — Read more / Contribute
by marto
on Oct 28, 2023 at 08:16

    This node doesn't show the 'in reply to' and 'in thread' hyperlinks for me. I first suspected some user based setting based on depth, but this doesn't seem to be the case as this displays them as expected.

    Update: I don't recall seeing this before. Does it render for everyone else the way it does for me?

Dark Mode for AM?
7 direct replies — Read more / Contribute
by haukex
on Oct 18, 2023 at 04:25

    Hi all,

    PerlMonks already has a dark theme, but it is not automatically selected when not logged in. Literally every website, app, IDE etc. I use regularly nowadays supports a dark mode, and opening PerlMonks in the evenings, e.g. on mobile where I'm not logged in by default, is therefore much less enjoyable to my eyes, and I suspect it's similar for anyone who has selected the dark mode on their mobile, OS, or browser.

    Supporting dark mode is easy nowadays with the corresponding CSS media selector. I propose a new color theme, "auto light/dark", and making this the default for non-logged-in users. This change would only affect users who are not logged in, and only those who have selected dark mode in their OS/browser - all other visistors will see no difference; logged in Monks could select the new theme in their display settings if they prefer. The other great thing is that supporting this and changing the theme doesn't require any server-side detection, JS, or even page reloads.

Super Search confused?
3 direct replies — Read more / Contribute
by afoken
on Oct 15, 2023 at 20:56

    Super-searching for rare words emits nonsense percentages and/or nonsense dates:


    Remainder of query was not run (used 10.01 seconds so far)

    Found 0 nodes roughly between 2023-07-06 and 0 (searched 279.36% of DB).

    where any text contains "rhababer"

    Date: Author/owner: Title: Node type:

    Press Next> to continue searching remaining 586.07% of DB.

    Please be patient after submitting your search.

    (Emphasis mine)

    The search works fine, so the nonsense values are probably just cosmetic.

    Update: Now that this node exists, the first result page works fine and lists this node. The next result page returns nonsense values:

    Found 0 nodes roughly between 2019-08-25 and 0 (searched 739.47% of DB).

    where any text contains "rhababer"

    Date: Author/owner: Title: Node type:

    Press Next> to continue searching remaining 122.21% of DB.

    Please be patient after submitting your search.


    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
Slashdot nodelet links broken
3 direct replies — Read more / Contribute
by kcott
on Oct 09, 2023 at 03:03

    I assume someone has been working on "Slashdot nodelet" and has broken something. Maybe several things. Here's what I found.

    • Initially, I was surprised to see all links in this nodelet were showing as "visited".
    • I then noticed that all of the target URLs were the same. (The link texts are different, and look like genuine Slashdot headers.)
    • I then became aware that links point to the current page. To clarify:
      • as I write this, all Slashdot links on the current tab point to ' Monks Discussion';
      • I opened Tidings in a new tab to check if any work had been reported, all Slashdot links on that tab point to '';
      • changing back to the tab where I'm writing this and all links here still point to ' Monks Discussion'.

    I've checked several other nodelets but their links do not appear to be affected by this problem.

    There's one other minor issue. The emboldened word Slashdot now appears immediately beneath the Slashdot nodelet heading: it wasn't there yesterday and it's completely redundant.

    Could someone fix this please. Thankyou.

    — Ken

Slashdot nodelet for Anonymous Monk
No replies — Read more | Post response
by kcott
on Oct 04, 2023 at 11:27

    G'day All,

    "Tidings: What's New at PerlMonks" reported, a couple of months ago, "Slashdot Nodelet added".

    I added it to my sidebar and check it pretty much every time I log in. I've found a number of interesting articles so thanks for doing this.

    Today, before logging in, and therefore an "Anonymous Monk", I noticed that this nodelet was absent.

    I wondered if it would be a useful addition to AM's sidebar. I thought that it might be which raised some questions:

    • Do others also think it might be a useful, or even wanted, addition?
    • Are there any technical difficulties associated with adding it?
    • Are there any reasons not to add it?

    — Ken

Larger profile pic than 80KB?
4 direct replies — Read more / Contribute
by stevieb
on Oct 02, 2023 at 04:36

    Is the restriction on image definition and size for our profile pics due to storage limitation?

    I updated my own after numerous years and found that the limitations seemed to be possibly antiquated a little bit. I had to hack at my image in Preview on my Macbook and I'm not complaining, but it did get me to wonder why the restrictions seem so limited.


PerlMonks Certificate Expired
5 direct replies — Read more / Contribute
by harangzsolt33
on Sep 17, 2023 at 23:28
    Does anybody else get this error? When I visit PerlMonks, I get a certificate expired message in my web browser. It doesn't matter which browser I use. Same thing happens when I visit PerlMonks on my phone. I get an error message. Apparently the expiration date is Sunday, September 17, 2023 which is today. Can somebody fix this? Btw I wouldn't mind if PerlMonks went back to use HTTP only. Saves you some money. I see no reason why PerlMonks should be using HTTPS. This is not a bank. What are you trying to protect?
LTR character in links
2 direct replies — Read more / Contribute
by Bod
on Jun 19, 2023 at 18:19

    In my profile, I have listed the modules I've published. But one has LTR characters in it.

    I've tried typing the characters and copying them from a working URL but it seems the Monastery has a glitch!!! +ion
Account creation
2 direct replies — Read more / Contribute
by Anonymous Monk
on Jun 12, 2023 at 19:13
    Uups, I see the page telling me "your account has been created. . . ." but I never receive my password! what's going on?

Discussion Item
Give us your input:
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?

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2023-12-05 04:56 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (25 votes). Check out past polls.