user-pic

Grinnz

  • About: I blog about Perl.
  • 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…

  • Commented on PrePan
    Another avenue you might try is IRC. #perl on Freenode or #perl-help on irc.perl.org are active and can help with any number of queries regarding the applicability, naming, or design of your modules, and #toolchain on irc.perl.org can help with...
  • Posted A Guide to Versions in Perl to Grinnz

    Version numbers in Perl are very important; they allow orderly updating and maintenance of modules and distributions across the CPAN, and allow CPAN modules and consumers to require the versions of modules with the bugfixes or features they need. However, in…

  • Commented on Stupid Testing Trick: Inconstant Constants
    Though on second thought Foo::MAGIC may get compiled out due to being a constant, before the 'around' takes effect if it wasn't done in BEGIN{}....
  • Commented on Stupid Testing Trick: Inconstant Constants
    imported*. And you don't need to call them as methods, just accessing Foo::MAGIC should work regardless of importing....
  • Commented on Stupid Testing Trick: Inconstant Constants
    You'd need to do the 'around's in a BEGIN{} block for them to take effect before the constants are important from Foo in the 'use' line....
  • Commented on Stupid Testing Trick: Inconstant Constants
    If you don't want to deal with the ugly redefine warnings yourself, you can use Class::Method::Modifiers to wrap an existing function to return something different: use Foo (); use Class::Method::Modifiers; around 'Foo::PLATFORM' => sub () { 9.75 }; around 'Foo::MAGIC'...
  • Posted Encode::Simple - Encode and decode text, simply to Grinnz

    Encode is a well known core module in Perl with support for encoding and decoding text from almost any character encoding you can think of. But it's also an old module with a large amount of historical cruft.

    With inspiration from #perl on freenode IRC, ="https://metacpan.org/pod/En…

  • Commented on Dist::Zilla Check License
    Please do not follow the methods in these blog posts of using Dist::Zilla, they are drawn out, incomplete, and in places counterproductive. Instead I would suggest starting with bundles like Dist::Zilla::PluginBundle::Starter or Dist::Milla, and if you need help, plenty of...
  • Commented on Testing FIDO/U2F Two Factor Authentication
    You can edit posts. Click "Post" on the top bar to go to your dashboard, hope that your session works correctly, probably log in again, and there you can see your entries for editing....
  • Commented on Why I recommend using the "++" system of Metacpan
    @Ben: I agree it's nice to leave feedback for modules you use. But are you referring to the ++ system on metacpan or the stars from cpanratings (a separate site)? ++ is certainly a simpler way to show your appreciation/usage....
  • Commented on Why I recommend using the "++" system of Metacpan
    No; modules can be downloaded from any of hundreds of CPAN mirrors so they all could individually track downloads but nobody would have the full picture. The best you could do is track downloads at https://cpan.metacpan.org as that's a commonly...
  • Commented on I want my, I want my Kwa-li-tee
    All good suggestions. As a note [MinimumPerl] isn't strictly necessary, it will attempt to autodetect the minimum version of perl required, but if you want to explicitly declare a minimum version that you support, you can add a runtime prerequisite...
  • Commented on Inline::F2003 - An ILSM for modern FORTRAN
    As long as the word Fortran appears in the abstract (the part of the NAME section after the module name and hyphen), it should be easily searchable on metacpan. Regardless, it doesn't appear that this distribution is on CPAN currently....
  • Commented on What Time is Midnight?
    Correct, leap seconds do not affect the unix epoch time, as they're ignored or skipped for that purpose. Time zone offset changes are another matter, since they're applied "on top" of the epoch time. So the simplest method is to...
  • Commented on Perl 5 Porters Mailing List Summary: October 16th - Nov 1st
    That proposal would not generally change how functions like substr and length work. It would change how string literals in source code are interpreted, which would cause breakage. But the important part of the proposal there is: "To get there,...
  • Commented on What Time is Midnight?
    A particularly tricky one because it's a case where the timezone *offset* changes depending what time of day it is. So only a module like DateTime with a complete timezone implementation can make it "just work": my $date = DateTime->new(year...
  • Commented on Check compression in web page
    I think it would be neat if this module used HTTP::Tiny instead of LWP. HTTP::Tiny is core on perl 5.14+ and it doesn't really look like it uses any LWP-specific features (like hooks or HTTP::Message objects)....
  • Commented on The Hot New Language Named Rakudo
    I appreciated the effort on the part of mst to push the idea to rename Perl 5 as a compromise we have more control over. But do we really? Perl 5 has over 20 years of mindshare in the programming...
  • Commented on Because CPAN Needs More Templating Modules
    Sadly I think BPO ate some significant parts of your template in the comment....
  • Commented on Trials and troubles with changing @INC
    You can use lib.pm for that: no lib '.'; or PERL5OPT=-M-lib=....
  • Commented on How fast can you try?
    Ah, makes more sense now. Thanks...
  • Posted Autoload::AUTOCAN - Autoloading the easy way to Grinnz

    Autoload can be a very powerful tool in Perl, though often you should first consider if there's a better way; Autoload is not necessarily the best solution for cases where you just need to generate many methods by name, and definitely is…

  • Commented on How fast can you try?
    Also interesting that you found Try::Catch to be slower than Try::Tiny, given its purpose is to be faster....
  • Commented on Dist::Zilla @Starter - Revision 2
    The great thing about Dist::Zilla is we have all of these options to serve any preference. One other note, [ReadmeAnyFromPod] with location = root automatically excludes the generated file from the build. Though it doesn't hurt to exclude it manually...
  • Commented on Dist::Zilla @Starter - Revision 2
    Regarding the GitHub readme, that's beyond the scope of this bundle currently, as it does not assume any source control system. I prefer to generate README.pod and copy it on release and regenerate, either way it needs to be excluded...
  • Commented on Dist::Zilla @Starter - Revision 2
    Neat, hadn't seen that one. I might use it in my own bundle, but I'll have to consider whether it would be appropriate for this one....
  • Posted Dist::Zilla @Starter - Revision 2 to Grinnz

    I recently released revision 2 of the [@Starter] plugin bundle for Dist::Zilla. This revision brings small improvements to the default behavior, as well as the option to set a different installer plugin. In order to use the…

Subscribe to feed Recent Actions from Grinnz

  • Aristotle commented on Dist::Zilla Check License

    You are using a file from outside the repository to build the distribution. Nobody else has that file stored in that path on their computer, so nobody else can build the distribution. If that fact counts as undocumented on account of the documentation not mentioning that then even infinite documentation will be insufficient.

  • Tom Wyant commented on Stupid Testing Trick: Inconstant Constants

    Thanks for the recommendation. Unfortunately this does not appear to affect the value imported from Foo, only the value returned when I call Foo->PLATFORM. When I replace the block in my sample script with your suggestion, it prints 42 twice, though if I call the "manifest constants" as methods I do indeed get the modified value. Of course, I may have misunderstood your suggestion. My modified code is:

    use Foo ();
    
    

    use Class::Method::Modifiers;

    around 'Foo::PLATFORM' => sub () { 9.75 };
    around 'Foo::MAGIC' => sub () { 8 };…

  • Tom Wyant commented on Stupid Testing Trick: Inconstant Constants

    Enclosing the around() call in a BEGIN block does get me the correct values out. Unfortunately Class::Method::Modifiers does not preserve the prototype of the subroutine, so I get "Prototype mismatch" warnings, and the value is not inlined.

    The prototype errors arise from the final eval in install_modifier(), and would have to be silenced there. What is really needed for this application is for Class::Method::Modifiers to preserve the proto…

  • Buddy Burden commented on Why I recommend using the "++" system of Metacpan

    Well said. I've gone and ++'ed all the modules I regularly install on every new Perl installation I create. Thanks for the reminder.

  • preaction commented on PrePan

    If you haven't heard back about adopting the module, the next step is to CC the PAUSE admins: https://www.cpan.org/misc/cpan-faq.html#How_adopt_module

    Giving feedback on PrePAN is difficult: Feedback on building good CPAN-style distributions is automated in CPANTS (https://cpants.cpanauthors.org/) and PAUSE itself will not index dists it can't understand. The value PrePAN adds is in design feedback and solutioneering. This kind of feedback requires people have domain knowledge or to have used other solutions.

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.