Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

The Monastery Gates

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

New here?I want to ask a question of the Perl Monks. Where do I start?

Notices:

hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.

If you're new here, please read PerlMonks FAQ
and Create a new user!

Quests
poll ideas quest 2025
Starts at: Jan 01, 2025 at 00:00
Ends at: Dec 31, 2025 at 23:59
Current Status: Active
3 replies by pollsters
    First, read How do I create a Poll?. Then suggest your poll here. Complete ideas are more likely to be used.

    Note that links may be used in choices but not in the title.

Perl News
German Perl/Raku Workshop 2026 in Berlin
on Nov 10, 2025 at 14:16
0 replies by Corion
Eskild Hustvedt on the joy of rediscovering Perl
on Oct 29, 2025 at 05:31
0 replies by mldvx4

    Eskild Hustvedt has written a nice blog entry on the joy of rediscovering Perl:

    So, since I wanted to get away from the node-ecosystem, and my static site generator was written in JS, I thought I would try my hand at writing one in Perl. This is the most fun I've had writing code for years. It's just so nice to write.

    I have to agree. While there can be utility in knowing other scripting languages, it is Perl which stands out as being a lot of fun. YMMV.

Supplications
How do I package up a Perl-TK app for macOS?
2 direct replies — Read more / Contribute
by perltux
on Nov 13, 2025 at 17:57
    I have a GUI based application written by me in Perl, using Perl-Tk for the GUI. This application runs well on Linux, Windows and macOS (on macOS it requires an installed X11 server for the GUI).

    In order to distribute this application to Windows users I packaged it up into an exe file using ParPacker and this works really well, no complaints from the users.

    I tried using ParPacker on macOS but ran into problems with X11 and other libraries not being found as their location varies depending on the X11 server installed and depending on which packaging system is being used, there is XQuartz and there are X11 servers in Homebrew and Macports and there are even various distributions of Perl and related modules (the limited Perl included in macOS and the Perl packages from Homebrew and Macports), each using different paths and apparently also different library versions.
    It seemed very much a mess to me and even after days of trying I wasn't able to find a satisfactory solution.

    So has anybody successfully packaged up a Perl-Tk application for macOS and if yes how exactly did you do it, using ParPacker or some other method?
    Any hints would be very helpful. TIA.
MAX and GROUP BY in DBIx::Class
4 direct replies — Read more / Contribute
by Anonymous Monk
on Nov 13, 2025 at 15:18

    I have what should be a simple question, but I can't figure out how to do it in DBIx::Class (which I'm using elsewhere in this code, so I need it for this too).

    I have a single table, that (for this purpose) contains an ID, a name, and a score (and other data not relevant for this question). I want to get the Result object for the highest score for each name. That's it. So, for the data

    +----+-----------+-------+ | id | name | score | +----+-----------+-------+ | 1 | John | 24 | | 2 | John | 60 | | 3 | Mary | 4 | | 4 | John | 10 | | 5 | Kate | 30 | | 6 | Mary | 20 | +---+------------+-------+
    I want to get back rows 2 (John's highest score), 5 (Kate's highest (and only) score), and 6 (Mary's highest score).

    That is, the SQL would be something simple like SELECT MAX(score), name FROM scores GROUP BY name; (except that I want to get the Result object, not the actual column values).

    How can I accomplish this? The docs are pretty sketchy about grouping in general, and I can't find a good parallel anywhere.

Update Old Selenium Tests
3 direct replies — Read more / Contribute
by hbarnard
on Nov 12, 2025 at 04:38

    I have a fairly substantial, but 'old', set of tests for Cclite. They use, or used use Test::WWW::Selenium; which now doesn't seem to find a webdriver on any version of Selenium that I download

    Error requesting http://10.0.0.65:4444/selenium-server/driver/: 404 Not Found

    My tests all take the form of

    $sel->open_ok("/cgi-bin/cclite.cgi"); $sel->type_ok("registry", 'dalston'); $sel->type_ok("userLogin", $user); $sel->type_ok("userPassword", "password"); $sel->submit("form") ;

    I'd really like to find some way to use/re-use them without too much extra work. I'm prepared to do a little Java and recompile Selenium if it comes to that

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 pondering the Monastery: (2)
As of 2025-11-18 17:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (72 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.