user-pic

Grinnz

  • About: I blog about Perl.
  • Posted Searching Perldocs to Grinnz

    Search is a hard problem. It is the task of getting users to what they want to find, even if they don't know exactly what that is. Its requirements vary widely based on the kinds of things people will want to find and the kinds of people that want to find them. It's also an expected feature of…

  • Commented on I want to display NA instead of UNKKONW in CPAN Testers
    Only this exact message is recognized as NA. die "OS unsupported\n" Arbitrary error messages will result in UNKNOWN....
  • Posted Perl Toolchain Summit 2019 - CPAN Dependencies Graph to Grinnz

    I was grateful to attend for the first time the Perl Toolchain Summit, held this year in Marlow, UK at the Bisham Abbey. I got to meet many of the talented and persistent contributors to the Perl CPAN infrastructure, and also see a country outside North America for the first time. The Perl…

  • Commented on How to serve Static HTML file and CGI script in development environment
    The Mojolicious plugin can coexist with anything else your application serves such as static files. The Plack apps can be combined with the mount keyword from Plack::Builder, with something like Plack::App::Directory for serving static files, or a Dancer2 application, etc....
  • Commented on Call for volunteers to update OWASP Perl Wiki
    Surely Perl 6 should get its own page rather than confusing the Perl page....
  • Commented on How to serve Static HTML file and CGI script in development environment
    And there are more options via Plack: Plack::App::CGIBin and Plack::App::WrapCGI....
  • Commented on Perl Weekly Challenge: Week 2
    You have to space the syntax so that it does not interpret it as the pre-decrement operator, such as "- -5" or "-(-5)". I am not sure if you'd still consider that part of the number....
  • Commented on How to serve Static HTML file and CGI script in development environment
    Consider also Mojolicious::Plugin::CGI....
  • Commented on What to do with doubly-broken UTF-8?
    Converting to Test2::Suite may be a good idea as it has built in support for encoding output to UTF-8....
  • Commented on HTTP requests, simply
    That is pretty nice. Test::Mojo provides a similar interface for testing Mojo apps, it's incredibly useful....
  • Posted HTTP requests, simply to Grinnz

    It's long been common to use the LWP::Simple module for quick HTTP requests where you only need to retrieve the contents of a website and put them somewhere. Nowadays I would highly recommend the very neat

  • Commented on I'm not positive about this...
    This is because the unary minus operator is weird. If it's applied to a string that starts with a plus or minus, which isn't a number, it reverses that sign; if it doesn't start with a plus or minus, it...
  • Commented on Is there anything wrong with this benchmark?
    With ->SUPER, your sub is being called first and then it looks up what the superclass is via inheritance. With around, it *creates a new sub* in place and then passes you (at call time) a reference to the previously...
  • Commented on Perl Dependency Checking
    Regarding the blog platform, I completely agree that it has many problems - I tend to still post here for greatest visibility, then post the link to reddit r/perl for comments. There is a grant for creating a modern replacement...
  • Commented on Perl Dependency Checking
    Some other commonly used options are Perl::PrereqScanner (used by the Dist::Zilla [AutoPrereqs] plugin) and Perl::PrereqScanner::Lite (used by scan-prereqs-cpanfile). Scanning prereqs is a **hard** problem to do perfectly, because modules are not always loaded at compile time, or even always as...
  • Commented on Modern Perl CGI
    I appreciate the example of a lower-level alternative, since my post only showed a Mojolicious solution for brevity and because that is where my experience is, and this is certainly a good alternative as well. However, "the Mojolicious example derives...
  • Commented on Modern Perl CGI
    I intentionally did not frame this as "you should use Mojolicious", since I know it is not everyone's cup of tea. There are other alternatives that provide the same benefits. However, Mojolicious (and most of the other options, too) can...
  • Commented on Modern Perl CGI
    I'd like to see the benchmarks of that using the latest Mojolicious with Cpanel::JSON::XS installed, but if that's a problem for an application perhaps it's an indication CGI isn't the right deployment method. Luckily, there's an easy solution for that......
  • Posted Modern Perl CGI to Grinnz

    This is a CGI script, let's call it uppercase.cgi:

    #!/usr/bin/env perl
    use strict;
    use warnings;
    use CGI;
    use Encode::Simple;
    use JSON::MaybeXS;
    use Syntax::Keyword::Try;
    
    my $cgi = CGI->new;
    try {
      my $input = decode 'UTF-8'…
  • Commented on Adding a ROADMAP section to the POD
    You're free to add whatever POD sections you want beyond the standard ones NAME, SYNOPSIS, DESCRIPTION, and some form of COPYRIGHT/LICENSE. The best way to "propose" how to use a section like that is to lead by example and show...
  • Commented on JSON::Transform - transform JSON-able data structures without code
    If you are just looking for retrieval, try JSON::Pointer or Mojo::JSON::Pointer....
  • Commented on Speedup Travis by tweaking your Dist::Zilla config
    Agreed with Graham, and I have made great use of CopyFilesFromRelease + Regenerate::AfterReleasers to have files regenerated at release time (for consistency's sake, and these get automatically committed in the release commit) as well as when I run dzil regenerate...
  • Commented on File::Slurp new version
    genio's current efforts are mostly to fix the obvious bugs and problems with the module's packaging and testing, and fix it for Perl 5.30 which will make sysread on :utf8 handles fatal. For new users, the only real fix is...
  • Commented on Unicode::Properties slated for removal
    While removal is probably fine in this case (and I see that you've already done so), another option is simply to deprecate it and then put the namespace up for adoption. This has the benefit of allowing it to be...
  • Commented on Installing sets of modules
    The biggest problem is that its main feature, that a specific version of it is bundled with the distribution to install it, means that it is impossible to update all of the bundled versions to cope with new installation requirements,...
  • Posted Dist::Zilla Starter revision 3 - Git, versioning, and more to Grinnz

    I've just released revision 3 of the @Starter plugin bundle for the Dist::Zilla CPAN distribution authoring tool. There's no changes to the base configuration from revision 2, but there are now additional options to help…

  • Commented on Installing sets of modules
    You may find mbtiny to your liking. Like many other authoring tools that have come around post-Module::Install, it relies on simply specifying dependencies in a cpanfile (which allows much the same format as Module::Install that you're used to), and has...
  • Posted perldoc.pl now powered by Elasticsearch to Grinnz

    perldoc.pl, the alternative perldoc browser, originally leveraged PostgreSQL full text…

  • Commented on perldoc.pl - A new way to perldoc
    Some updates: Significant improvements to mobile/small browser view, with an expandable navigation menu in those form factors (requires javascript) Entering special variables in search now brings you to a page for that variable...
  • Posted perldoc.pl - A new way to perldoc to Grinnz

    For the past decade or more, perldoc.perl.org has been a useful and convenient resource for viewing perl documentation online. However, it has suffered from lack of maintenance and mounting unfixed…

Subscribe to feed Recent Actions from Grinnz

Subscribe to feed Responses to Comments from Grinnz

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is hosted by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.