user-pic

Tom Molesworth

  • Commented on Conflict Resolution: local::lib and git's Perl
    Isn't the question why your system perl doesn't have List::Utils? That module has been in core for quite some time now. It's cases like that (software package $foo relying on a working perl) that still make a valid point for...
  • Commented on Do not use each
    Not using each() seems like good advice in general. I think that second problem unfairly singles out Data::Dumper, though - the bug is in the example code, not Data::Dumper itself. The iterator would also be reset if Dumper() used keys()...
  • Commented on POE::Session object_states: handlers are sub names not CODEREFs
    That's nothing to do with POE, though - you're just calling _poll_start / _poll_work etc. without parameters? perl -e'sub _poll_start { print "Called with @_\n" } my $thing = { start => _poll_start };' passing sub { $self->_poll_start } or...
  • Commented on Perl and Me, Part 2: The Power of OOP
    Interesting. It sounded like it was the boilerplate that you were calling out in particular, apologies if I misunderstood. Anyway, seems my experiences are pretty much the opposite - it's the Perl OO code which Just Works. Sure, a typo...
  • Commented on Perl and Me, Part 2: The Power of OOP
    You've mentioned several times that writing objects/classes in C++ is easier than in Perl. Would you be able to provide examples? Generally I find it to be the opposite, to the extent that I have Perl write my C++ code...
  • Commented on MooseStyle: Self-made inline vs cpan-based inline
    > Is your issue about Mo or about non-core dependencies? Neither - it's about modules which use Mo::Inline. Mo itself seems fine, if a module uses it and works, that's great. Non-core dependencies... the more the merrier. I have no...
  • Commented on MooseStyle: Self-made inline vs cpan-based inline
    An upgrade to Mo::Inline appears to be behind this issue for YAML: https://rt.cpan.org/Ticket/Display.html?id=90817 and I think a similar issue was behind this: https://rt.cpan.org/Ticket/Display.html?id=76664 It's not the most pleasant code to be debugging either. It's an interesting idea, but I'm treating...
  • Commented on Arrow Operator Shenanigans
    It's documented in 'Subroutine References as Methods' in perldoc perlobj: You can also use a subroutine reference as a method: $file->$sub(); This is exactly equivalent to writing "$sub->($file)". so I think it's fine to rely on this behaviour. Might be...
Subscribe to feed Recent Actions from Tom Molesworth

  • Samuel Kaufman commented on Conflict Resolution: local::lib and git's Perl

    Oh nice, looking forward to that local lib addition.
    This stuff is frustrating to me as a perl dev for 6+ years, and it's super confusing for newbies.
    Also, Randal Schwartz was certainly right on the git thread. System utilities should not be picking up env.

  • Samuel Kaufman commented on Conflict Resolution: local::lib and git's Perl

    BTW, would perl -wT fix this? I know taint mode is complex so probably not so cut and dry...

  • preaction commented on Conflict Resolution: local::lib and git's Perl

    I'm of two minds on the "using system Perl" thing: The perl in env is something I know is going to work with the envvars I've got, or at least is something I can fix in a pretty straightforward way (as in I've got a local::lib and can install to it). But I'm such a rare flower, a Perl programmer, that I don't think I need to be catered to at the expense of everyone else, so the GITPERLLIB override works just fine.

  • Ether commented on Conflict Resolution: local::lib and git's Perl

    This seems like a strange problem - e.g. I use perlbrew and local::lib extensively, and always have PERL5LIB set, but I've never had an issue with git commands.

  • preaction commented on Conflict Resolution: local::lib and git's Perl

    I suspect I only ran into it just now because I upgraded List::Util to take advantage of the new pairs features. Otherwise I've been chugging along just fine.

Subscribe to feed Responses to Comments from Tom Molesworth

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 run by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.