Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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?

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

Quests
Wall of Larry Quest
Starts at: Feb 26, 2024 at 05:00
Ends at: Dec 31, 2024 at 04:59
Current Status: Active
2 replies by jdporter

    By now you've all seen The St. Larry Wall Shrine. Well, it could use a fresh coat of gold leaf and shellac. Therefore, we are soliciting Larry-related items to be placed on the shrine. Links to offsite content are good; or if you have small bits of content, such as quotes, you'd like to contribute, that's fine too. Please reply to this Quest with your humble offerings. Thank you! And may St. Larry bless your codings and your debuggings.

poll ideas quest 2024
Starts at: Jan 01, 2024 at 00:00
Ends at: Dec 31, 2024 at 23:59
Current Status: Active
6 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
DuckDuckGo Donates $25,000 to The Perl and Raku Foundation
on Dec 03, 2024 at 11:24
1 reply by marto
PDL Advent Calendar 2024
on Nov 30, 2024 at 22:53
0 replies by etj
    Not to be outdone (much), the PDL community has made a PDL Advent calendar: https://pdl.perl.org/advent/index.html. Big up to Ea for the idea and impetus behind it.

    There are a couple of episodes beyond today's (the 1st) up already, so you can binge it if you like. Or, you can keep your cool and just read one per day. I won't tell you how to best enjoy it!

    Comments welcome.

Supplications
CPAN: Module version versus kit version
5 direct replies — Read more / Contribute
by sciurius
on Dec 05, 2024 at 11:13

    Dear Monks,

    After 25+ years of submitting perl modules to the CPAN I feel the need to ask the following question.

    I have a module Foo version 1.10. It is packaged for CPAN with Makefile.PL and tests as Foo-1.10.tar.gz.

    One of the tests fails under specific circumstances so I fix the test. The module does not need changing.

    How can I update the kit version (to e.g. 1.10.1) without having to change the module version?

Tk::Canvas not working
1 direct reply — Read more / Contribute
by BillKSmith
on Dec 04, 2024 at 16:01

    I have a perl_Tk script which has recently started aborting with the following message.

    Can't locate loadable object for module Tk::Canvas in @INC (@INC conta +ins: C:\Us ers\Bill\Perl\lib C:/Strawberry/perl/site/lib/MSWin32-x64-multi-thread + C:/Strawb erry/perl/site/lib C:/Strawberry/perl/vendor/lib C:/Strawberry/perl/li +b) at C:\U sers\Bill\projects\fractal\mandelbrotTk.pl line 25. Compilation failed in require at C:/Strawberry/perl/site/lib/Tk/Widget +.pm line 268.

    I am using Tk version 804.036001, Strawberry perl 5.38 under windows 7.

    Strawberry perl 5.38 is the only perl on my computer. Several months ago I uninstalled a previous version of perl and installed 5.38, then installed Tk with the command cpan Tk. My existing script worked immediately and continued to until some time last week. I am certain that the script has not changed. I am not aware of any changes to perl, Tk, or any of its components, in fact, I have verified that the modules Tk.pm, Tk/widget.pm, and Tk/canvas.pm are all up to date and stored in C:/Strawberry/perl/site/lib. Another Tk script (which does not use canvas) still works.

    Does "loadable object" refer to anything other than Tk/canvas.pm? I would appreciate any suggestion on finding and fixing the problem. Of course, I will post any additional material which may be helpful.

    Bill
Meditations
A cpanfile polyglot - for setting up Perl on Termux
2 direct replies — Read more / Contribute
by Corion
on Dec 05, 2024 at 13:59

    Recently I got myself a new phone. And, as one does, I installed Termux on it, to have a unix-ish environment for when I need it.

    Then, of course, I went to configure Perl and install some modules I'd like there. As this was not my first time doing so, I thought about listing all the modules I want in a cpanfile and then using App::cpanminus to install these, making the process far more reproducible.

    But that required some non-Perl prerequisites, like the C compiler, make and perl itself. And of course, also bootstrapping App::cpanminus.

    Then I thought a bit on how to combine this setup into a single file. This is what I came up with. It's a cpanfile that doubles as shell script.

    #!/bin/bash # This will install cpanminus and then the Perl modules # as listed at the end of this script. To run use # the following commands: # # chmod ugo+x ./cpanfile && ./cpanfile # eval ' pkg install git perl make clang if ! cpanm --help 2>&1 >/dev/null ; then curl -L https://cpanmin.us | perl - App::cpanminus fi DIR=$(dirname "$0") cpanm --installdeps --notest --cpanfile "$DIR" exit ' if 0; requires 'Mojolicious'; requires 'DBIx::Spreadsheet'; #requires 'App::sqldisplay'; # to be released on CPAN requires 'DBIx::RunSQL';

    Why not the other way around? Because I could not find a way to make cpanm take a file with a different name than cpanfile :)

    The cpanfile is also available on Github, if you want to copy it.

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 scrutinizing the Monastery: (7)
As of 2024-12-10 13:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (56 votes). Check out past polls.