user-pic

brian d foy

  • Website: www.theperlreview.com
  • About: I'm the author of Mastering Perl, and the co-author of Learning Perl (6th Edition), Intermediate Perl, Programming Perl (4th Edition) and Effective Perl Programming (2nd Edition).
  • Posted Nominate Perl heroes for the 2016 White Camel Awards to brian d foy

    We're looking for nominations for the 2016 White Camel Awards that recognize significant non-technical achievement in Perl and its community. Each year we recognize work in the broad categories of community, advocacy, and user groups. These…

  • Posted Kickstart Learning Perl 6! to brian d foy

    I need everyone's help! Perl 6 had its Christmas release, it's mostly easy to install now, and the language is stable enough that something I write this year will most likely be true next year. O'Reilly wants to publish…

  • Commented on Tag your CPAN issues on github for Hacktoberfest
    As promised, I made hacktoberfest.pl to add the Hacktoberfest label to every issue in every GitHub repo that you own. I suggest you clone the repo and run the program out of that. It will be in CPAN later, but...
  • Commented on Tag your CPAN issues on github for Hacktoberfest
    I've marked some issues as Hacktoberfest: PerlPowerTools and IO::Interactive. This weekend I'll cook up a script to tag all of your issues with Hacktoberfest!...
  • Posted Perl 6 at the Alpine Perl 6 to brian d foy


  • Commented on Teach Makefile.PL to use cpanm
    That's really cool and looks useful!...
  • Commented on Missing Smart Match
    I think I mentioned the drawbacks to your case in Rethinking smart matching. You don't know what's going to happen in that smartmatch until you actually get there and know what sort of values are in scalar and array. It...
  • Commented on Perl 6: The Next Node.js, Done Right
    PAUSE has removed modules in a similar situation before, even with responsive authors. But PAUSE has the same feature: an author can remove all of their stuff at their own discretion....
  • Posted The Lyon Compromise on Perl version formats to brian d foy

    I fixed some tests in Module::Release because I supported v-strings and dev versions at the same time. Even though I don't use v-strings, the module would recognize v1.2.3_1.

  • Commented on ...but which one is easier to learn?
    Actually, Learning Perl never split. Intermediate Perl was the re-titled Learning Perl: Packages, References, and Modules. That book covered Perl 5 features that Learning Perl, a Perl 4 book, didn't....
  • Commented on Perl6 module namespace
    Sometimes the taxonomy makes sense, and sometimes it's just annoying. That someone understands what the module does and how it relates to other modules should be the most important thing. A Chess module for games of Chess uses the most...
  • Commented on Mocking a User Agent
    I had a production project like this so I actually implemented the service as a Perl program. I'd start the server and test against it. It returned canned responses, but that was good enough. I did this in mojobake to...
  • Posted The White Camel Awards, 2015 Edition to brian d foy

    white_camel_2015.pngThe White Camel Awards recognize outstanding,…

  • Posted Nominate Perl heroes for the 2015 White Camel Awards to brian d foy

    We're looking for nominations for the 2015 White Camel Awards that recognize significant non-technical achievement in Perl and its community. Each year we recognize work in the broad categories of community, advocacy, and user groups.…

  • Commented on List::Slice - Slice-like Operations for Lists
    This is really cool (and simple)—I didn't expect it to be XS. Maybe you could write about this module for PerlTricks! The very simple glue code could be a nice introduction to XS. I don't think David has any articles...
  • Posted Creating a registry of environment variables to brian d foy

    I want a registry of environment variables. If I see someone using one, I want to know what it does and what code or programs uses that. Or, given a program, what are all the variables that might affect it?

    Rather than do the whole thing, I let myself do part of the first bit. I crawled a…

  • Commented on CPAN authors and Gratipay 2.0
    I think I'm more confused after reading that issues thread than when I started....
  • Commented on Anonymous Classes With Private Data
    Huzzah. I was talking about this idea at lunch today, although I didn’t know anyone was doing anything about it. I’d really like to have even named classes in a variable. Here’s some ridiculous syntax to load a particular version...
  • Commented on Dispatch Tables
    I cover dispatch tables in Mastering Perl along with other such subroutine tricks. :)...
  • Commented on Converting glob patterns to regular expressions
    A * might be inside [...], which would be like Perl's character classes. In that case, you want to leave it alone. :)...
  • Commented on Raise hell, or bugs, on CPAN Day!
    That's August 16 (Sunday), the day we recognize that skynetCPAN came on-line....
  • Commented on My CPAN Cleaning, Day 2457023.500000
    I have the password for the ADOPTME account because it's actually mine....
  • Posted "Become a CPAN Author" at MiniConf in NYC, June 6 to brian d foy

    I'll be leading my "Become a CPAN Author in Three Hours" workshop on the morning of Saturday, June 6 at MiniConf in New York City. This is our replacement for the

  • Posted Mojoconf is cancelled; I'm scrambling to do something anyway to brian d foy

    MojoConf has turned into MiniConf, with a social meeting on Friday, June 5 and a full day of Perl activities on Saturday, June 6. I'll give my "Become a CPAN Author in Three Hours" workshop on Saturday morning.



    It looks like Mojoconf 2015 is …

  • Commented on A quick static file webserver
    The render_static was deprecated in the middle of the Mojolicious 5 evolution and is now reply->static: #!/usr/bin/env perl use Mojolicious::Lite; use Cwd; app->static->paths->[0] = getcwd; any '/' => sub { shift->reply->static('index.html'); }; app->start;...
  • Posted I broke plenv and cpanm, and the systems they run on to brian d foy

    I didn't break them myself, but the Perl Power Tools project that I revitalized did. Well, that's not even strictly true. The Perl Power Tools, which install thin implementations of common Unix tools, highlighted a problem with the idea of tools such as…

  • Posted Huh. Multiple beginning-of-line anchors work to brian d foy

    I've never had a reason to use…

  • Commented on Rebuilding Cleveland Perl Mongers
    There are lots of possible guest speakers a medium train ride away, and I'm sure many of them would come out for just travel expenses. :)...
  • Commented on Promoting your Perl workshop or conference?
    In all of my years helping to promote events, I've grown comfortable with the idea that as the person publishing the magazine, newsletter, or whatever, I have to be the one to discover and research it. The journalism role is...
  • Commented on Semantic POD
    I wonder how pod could tell the pod translator which formatter to use. Like: =encoding utf8 =translator Pod::Semantic ... This could then pick up whatever you wanted to do with the Pod. There's a way to do this from the...
Subscribe to feed Recent Actions from brian d foy

  • Ether commented on Missing Smart Match

    Also note that the 'any', 'all', 'notall', and 'none' interfaces are now in List::Util, which is shipped with core perl. (You should depend on version 1.33 to ensure you get an upgraded version on earlier perls that shipped an older version.)

  • Aaron Priven commented on Missing Smart Match

    The construction any(@a) eq $x is just not as comprehensible as $x in @a, even if it does the same thing.

  • Graham Knop commented on Missing Smart Match

    I don't find

    $x in @a
    very comprehensible because it isn't obvious how it will be comparing elements. Will it use string equality or numeric equality? What if you need to pick one or the other?

  • Flavio Poletti commented on Missing Smart Match

    Didn't know about Syntax::Keyword::Junction, that's what you get when you stop to the first module that fits the requirements :). It would be good to have some hint in the Perl6::Junctions docs, anyway, because it seems "more popular" with two reviews and a few more ++'s. Maybe even a new comment would do the trick?

    The new subs in List::Util are OK but they (understandably) follow the syntax of the rest, which is less sugary. This seemed to be an important point in the OP. How much sugar you like is a matter of taste, of course.

    I agree with Graham Knop and I consider any(…

  • Aaron Priven commented on Missing Smart Match

    $x in @m and $y ~> @n are analogous to and just as comprehensible as $x eq $m and $y == $n.

Subscribe to feed Responses to Comments from brian d foy

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.