Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: pl – Perl One-Liner Magic Wand: looking for feedback

by Arunbear (Prior)
on Jun 04, 2022 at 12:14 UTC ( [id://11144389]=note: print w/replies, xml ) Need Help??


in reply to pl – Perl One-Liner Magic Wand: looking for feedback

It looks really interesting, but installing it from CPAN doesn't seem to work. I mean the install doesn't fail
% cpanm App::pl --> Working on App::pl Fetching http://www.cpan.org/authors/id/P/PF/PFEIFFER/App-pl-v0.63.2.t +gz ... OK Configuring App-pl-v0.63.2 ... OK Building and testing App-pl-v0.63.2 ... OK Successfully installed App-pl-v0.63.2 1 distribution installed
This just doesn't seem to install anything. As a comparison, installing App::cpanminus installs a program called cpanm

Also, when I repeat the above command, the output looks the same i.e. it re-installs instead of saying that App::pl is up to date (and still nothing is installed).

Replies are listed 'Best First'.
Re^2: pl – Perl One-Liner Magic Wand: looking for feedback
by marto (Cardinal) on Jun 04, 2022 at 16:42 UTC

    The Makefile.PL should contain something like:

    "EXE_FILES" => [ "bin/pl" ],

    Where the pl file would actually be in bin directory within the distribution. There's no sense in App: distribution if the module just warns:This is a just dummy package for CPAN.  Please run the script 'pl' directly!.

      Thanks for the tip! It's fixed.
        Hello DanielPfeiffer,

        I'm mad for oneliners.. :) so I'd like to investigate this, but I have some test failed (strawberry perl portable)

        The only thing I find atm is a SO post where #!perl -W seems guilty and you have use warnings 'all'; in all your tests.

        HtH

        L*

        There are no rules, there are no thumbs..
        Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
        Have you tested what happens when installing it with cpanm (or just cpan)? It's still not installing anything (I'm using a Mac).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (1)
As of 2024-04-24 13:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found