Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

The Monastery Gates

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

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

poll ideas quest 2022
Starts at: Jan 01, 2022 at 00:00
Ends at: Dec 31, 2022 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
PDL 2.079 released
on May 03, 2022 at 16:44
0 replies by etj
    PDL 2.079 has just been released. Notable changes since 2.078: Future plans, in something like intended order:
    • Restructure the TriD stuff so there is a consistent API between OpenGL and X3D/VRML - see 11143037 for more
    • fix more open GitHub issues
    • add event-handling hooks for ndarrays - see PDL::Dataflow for more
    • finish the independent C interface for making PDL usable from e.g. Python - see for more
    • “loop fusion” techniques to maximise locality of computation, minimising data’s trips through the “straw” between CPU and main RAM
    • use OpenCL or other means to also utilise GPUs if available - see for more on this and the above

    Please give the new release a try and report problems. website updated
on Apr 15, 2022 at 12:16
1 reply by etj
    I've just (hopefully) finished tweaking the website at, using Joel Berger's JavaScript-based update, enabling HTTPS by hosting on GitHub Pages. The search now uses MetaCPAN which has a neat autocomplete feature.

    I've probably missed some stuff so please have a nose around and open issues on or use the “Website issues” link in the sidebar (which links to that) - or reply on here!

    As usual, please give the new website a try and report problems.

How can I set a bit to 0 ?
9 direct replies — Read more / Contribute
by bartender1382
on May 26, 2022 at 12:09

    I feel silly asking this, but...

    I know how to set bits, and check for them. What I don't know how to do, nor find on Google,is turn off a specific bit whether it is set or not.

    my $stats = 0; $stats = upload | getTicket | downLoading; printCLine($stats);

    Yes, I can reset every bit minus the one I want, but that feels kludgy

In my perl script one of the variable it is giving an extra dot.
6 direct replies — Read more / Contribute
by Anonymous Monk
on May 25, 2022 at 03:05

    How to remove the . in the generated string

    my $file = shift;

    For the above variable it is giving an output like this "./root/git/common/crt_del/cert/DEFAULT.pem"

    I want to remove the "." before the /root for that can i use like this $file =~ s{.}{}g or any other way is there to remove that dot in the string

How to get programming help
7 direct replies — Read more / Contribute
by jdporter
on May 23, 2022 at 11:21
    "Every time I have a programming question and I rly need help, I post it on PerlMonks and then log into another account and reply to it with an obscenely incorrect answer. Ppl don’t care about helping others but they LOVE correcting others. Works 100% of the time"
    -- @soychotic
Libraries and security
1 direct reply — Read more / Contribute
by davies
on May 23, 2022 at 10:25

    An article in today's Register, has got me thinking. One quote from it is "These 2,415 people with these email addresses are currently more trusted than your own software engineers as they can effectively run any code they want on your production infrastructure without review from anyone". When the Log4J vulnerability appeared, I found out (I hardly ever use Java) that the offending module could be in any .jar without it being obvious to the programmer. At least, when I install a CPAN module, I can see a list of the modules it brings with it, even if I don't usually pay enough attention. But sometimes I need to be very security conscious.

    Looking for vulnerabilities in CPAN took me to There's not a lot there, and many of them are closed in the latest version. But looking at one of them,, I see that the module was updated <update>last month two years ago, seven years after the vulnerability was reported</update>, but that there is nothing in the changes file to indicate that the vulnerability has been addressed even though it's nine years old. Nor is there anything in the docs even acknowledging the existence of the vulnerability.

    The changes file does, however, reveal another worry.

    1.148 Thu Nov 16 10:21 2006
    - Debian has chosen to distribute their own Data::UUID, which has a different interface and breaks other modules.

    What, then, do people do in the real world? Are checks for CVEs enough? Do people do code reviews of every module they use in every language? It sounds beyond the bounds of reasonability to me. Are there certifications for modules (and if so, who certifies the certifiers - that old question)? I know people who prefer to install Perl packages on Debian via apt because it makes them easier to delete, but the quote above makes me fear that the CPAN and apt packages need not be the same.


    John Davies

    Update: I read the date carelessly & got it wrong. Thanks, Hippo.

Cool Uses for Perl
PerlPowerTools as single Windows executable
1 direct reply — Read more / Contribute
by kaldor
on May 26, 2022 at 16:25

    For a long time, I've been looking for a solution to bring Mac, Windows and Linux behaviour closer. My use case : I work in a corporate Windows environment (where you don't want to install unecessary software), but still would like a friendly CLI (I'm not great at it).

    I use UnxUtils, BusyBox-w32 and other utils to have a bearable experience on Windows, but they don't provide the same features/options as you'll find on macOS or Linux. Then I heard about the PerlPowerTools and thought they'd be perfect for having the same behaviour across these platforms. Even though I somehow find them hard to use due to namespace conflict with system utilities.

    So, I've updated (my fork of) the PerlPowerTools to behave like BusyBox and bundle them (with PAR::Packer) as a single Windows executable.

    Result : You can call the tools similarly on all three platforms.

    bin/cat bin/perlpowertools cat packed/perlpowertools.exe cat packed/cat.exe

    The additional benefit is that I can complement my Windows toolbox with my own (Perl) scripts. For example, add ack! to perlpowertools.exe just by copying the singl e-file version to PerlPowerTools's bin directory and running the 'packer' script.

    Any feedback, beta-testing or else are welcomed.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2022-05-29 02:32 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (101 votes). Check out past polls.