Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: PerlEx and HTTP request headers

by Anonymous Monk
on Jan 15, 2020 at 08:50 UTC ( [id://11111430]=note: print w/replies, xml ) Need Help??


in reply to Re: PerlEx and HTTP request headers
in thread PerlEx and HTTP request headers

How about some example code, from Perl's most popular distribution?
#!/usr/bin/perl use strict; use warnings; use Data::Dumper; use Mojolicious::Lite; get '/' => sub { my $q = shift; $q->render( text => Dumper($q->req->headers), format => 'plain' ); }; app->start;

Replies are listed 'Best First'.
Re^3: PerlEx and HTTP request headers
by marto (Cardinal) on Jan 15, 2020 at 09:51 UTC

    Interesting stat, thanks.

      (Can't resist: "statistics are like bikinis -- what they reveal is interesting, what they cover up is crucial")

      IIUC you have to be a registered PAUSE user and also logged into MetaCPAN as that user in order to ++ a distro. Much more illuminating would be installation counts. That would be difficult, if not impossible to measure accurately, but if Miyagawa updated cpanm to track distros installed, as he did with Perl versions, those would useful numbers ... and tallying download requests from a few busy CPAN mirrors over some period of time would also be interesting. But a number that excludes 99% of potential users and then only counts those who bother to "like" the package, seems of only very slight value imho. (Personally I've always used the ++ thing to see if people whose opinion I respect have "liked" the package.)

      Update: I am blind, see hippo's comment below. You don't have to be a PAUSE user. But you do have to have a MetaCPAN account and be signed in, and choose to add he module to your "Favorites" using the little orange button on the opposite side of the page from the list of ++ers ... so I mostly stand by what I said ;-)


      The way forward always starts with a minimal test.
        IIUC you have to be a registered PAUSE user and also logged into MetaCPAN as that user in order to ++ a distro.

        The use of the ++ on MetaCPAN is not restricted to PAUSE users. See, eg. Moo which as of today has been ++'d by 148 PAUSE users and additionally by 124 non-PAUSE users.

        Those would be some nice numbers to have :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2024-04-20 10:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found