user-pic

Graham Knop

  • Commented on perlbrew on OSX
    The problem is that you are installing modules into a local::lib, but that directory isn't part of the library search path. PERL_CPANM_OPT=--local-lib ~/perl5 means that things are always installed into ~/perl5, but the corresponding PERL5LIB isn't set up to load...
  • Commented on perlbrew on OSX
    The output of cpanm -v MP3::Info would be very helpful in tracking down the problem....
  • Commented on How to Run a Single Test via Dist::Zilla
    If you are dealing with XS code, you'll need prove's -b option instead of -l...
  • Commented on Conflict Resolution: local::lib and git's Perl
    I have a pending addition to local::lib that will install perl modules in a version specific directory. perl will then automatically pick those directories up, even they won't be listed directly in PERL5LIB. This will mostly fix problems of this...
  • Commented on Moose, Mouse, Moo what next 'M'
    There's no reason OO is less appropriate for CGI or command line programs, especially if they share components with a larger system. The only real concern is if the overhead is worth it. And for Moo and Mouse, you won't...
  • Commented on Extracting values from a list of (key, value) pairs
    There is a small mistake in your code. @N has an odd number of elements. pairkeys will warn about this if warnings are on. Another option for this is doing an array slice: @N[ map $_*2, 0..(@N/2)-1 ] It's slower...
  • Commented on Perl 5.19.x performance improvements
    Why do you say that? Not that structured exceptions are a bad idea, but why are they any more important for signatures than any other part of the language?...
  • Commented on Perl 5.19.x performance improvements
    They are documented in perlsub in the new release: https://metacpan.org/pod/release/TONYC/perl-5.19.9/pod/perlsub.pod#Signatures...
  • Commented on Array and hash intersections with map, grep, and state
    This also won't work correctly if you run the code more than once. You'd be better off not using state, and just adding a my %Seen before the grep/map....
  • Commented on Introducing Kavorka
    While you are pointing to the other modules, to the casual observer it isn't obvious what the real advantages are to this module over the existing solutions....
  • Commented on CPAN modules for converting markdown to HTML
    While Moose certainly has a significant startup and memory cost, it should have little to no impact on normal runtime operations. For WWW::Curl::Simple from the HTTP benchmarks, the slowness is not inherent to Moose itself but in how it is...
  • Commented on Carp::Always::EvenObjects - Include stack traces with all errors/warnings
    I did propose it to the author of Carp::Always, but he didn't want to add it. He prefers keeping Carp::Always simple and small, a decision I can't fault him for. My module has more than 6 times as much code,...
  • Posted Carp::Always::EvenObjects - Include stack traces with all errors/warnings to Graham Knop

    Edit: Since writing this, I've decided on a proper name. Devel::Confess is the name for this module going forward. Carp::Always::EvenObjects exists now only as a wrapper around Devel::Confess.

    Carp::Always is a very useful mod…

  • Commented on The grep test - my personal experience
    Even when you "know the codebase", there will come times where you want to find all invocants of a function/method. Especially when refactoring. Like so many other things, keeping thing grep-able isn't a hard and fast rule. But dynamically generating...
  • Commented on Crowdsourcing self-confidence
    there are still parts of it to me that I can't seem to grok or get comfortable with As projects get larger and more stable, it becomes less important for one person to have a full understanding of all parts...
  • Commented on Names and Numbers, Brand and Identity
    What currently exists as Perl 5 needs an identity. A real identity that people can both understand and promote. "A member of the Perl family" is not an identity. Changing the name is not just about changing our comparison to...
  • Commented on Testing scripts in your distribution, portably
    Keep in mind that $FindBin::Bin can also contain spaces, so you should be quoting $MPATH as well. As I had mentioned in IRC, the full story with Windows argument quoting is a lot nastier, but at least for filenames, wrapping...
  • Posted Using system or exec safely on Windows to Graham Knop

    Passing a list of arguments to another program on Windows in perl is much more complicated than it should be. There are several different issues that combine that lead to this.

    (mostly copied from a post I made on PerlMonks)

    First is that argument lists are always passed as a sing…

  • Posted Converting Complex SVN Repositories to Git - Part 4 to Graham Knop
  • Posted Converting Complex SVN Repositories to Git - Part 3 to Graham Knop

    Resolving Branches and Calculating Merges

    The most important part of the repository conversion I did was resolving all of the branches and calculating the merge points. The majority of the rest of the process is easily automated with other tools.

    The main part of this section wa…

  • Posted Converting Complex SVN Repositories to Git - Part 2 to Graham Knop

    Initial Import into Git

    Creating a mirror

    SVN is slow, and git-svn is slower. The amount of network traffic needed by SVN makes everything slow, especially since git-svn needs to walk the history multiple times. Even if I made no mistakes and only had to run the import once, …

  • Posted Converting Complex SVN Repositories to Git - Part 1 to Graham Knop

    In May and June, I worked on converting the DBIx::Class repository from SVN to Git. I’ve had a number of people ask me to describe the process and show…

  • Commented on A history of Perl variables
    And CHILD_ERROR_NATURE should be CHILD_ERROR_NATIVE. I suppose I could have finished reading the post before replying....
  • Commented on A history of Perl variables
    s/WARNINGS_BITS/WARNING_BITS/...
  • Commented on Spot the error
    Or actually: rmap_all { $_ = $_ ? true : false if JSON::is_bool($_) } $arg; Probably should have checked the docs on Data::Rmap before replying....
  • Commented on Spot the error
    You are also relying on the internals of both boolean and JSON's boolean values, and breaking them in the process. JSON (PP or XS) uses singleton objects for the booleans, which means you are trying to rebless the constants $JSON::true...
  • Commented on So is wantarray() bad or not?
    I don't see a general problem with using wantarray to return different things as in your initial example, but using it for anything other than altering the return value seems very bad to me. For example, returning either an array...
  • Commented on More bash completion help for perldoc
    This is exactly feature I was going to ask for after seeing your previous post. Thanks....
Subscribe to feed Recent Actions from Graham Knop

  • Chisel commented on perlbrew on OSX


    cpanm (App::cpanminus) 1.7001 on perl 5.020000 built for darwin-2level
    Work directory is /Users/c.wright/.cpanm/work/1406801664.10338
    You have make /usr/bin/make
    You have /usr/bin/curl
    You have /usr/bin/tar: bsdtar 2.8.3 - libarchive 2.8.3
    You have /usr/bin/unzip
    Checking if you have ExtUtils::MakeMaker 6.31 ... Yes (6.98)
    Checking if you have ExtUtils::Install 1.46 ... Yes (1.67)
    Searching MP3::Info on mirror http://cpanmirror.wtf.nap ...
    Downloading index …

  • Chisel commented on perlbrew on OSX


    cpanm (App::cpanminus) 1.7001 on perl 5.020000 built for darwin-2level
    Work directory is /Users/c.wright/.cpanm/work/1406801700.10348
    You have make /usr/bin/make
    You have /usr/bin/curl
    You have /usr/bin/tar: bsdtar 2.8.3 - libarchive 2.8.3
    You have /usr/bin/unzip
    Checking if you have ExtUtils::MakeMaker 6.31 ... Yes (6.98)
    Checking if you have ExtUtils::Install 1.46 ... Yes (1.67)
    Searching MP3::Info on mirror http://cpanmirror.wtf.nap ...
    Downloading ind…

  • Chisel commented on perlbrew on OSX


    MANPATH=/Users/c.wright/perl5/perlbrew/perls/perl-5.20.0/man:/usr/share/man:/usr/local/share/man:/usr/local/git/share/man
    PERLBREW_VERSION=0.69
    PERLBREW_PERL=perl-5.20.0
    PERLBREW_BASHRC_VERSION=0.69
    PERLBREW_ROOT=/Users/c.wright/perl5/perlbrew
    PATH=/Users/c.wright/perl5/perlbrew/bin:/Users/c.wright/perl5/perlbrew/perls/perl-5.20.0/bin:/Users/c.wright/.vim/bin:/Users/c.wright/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/local/go/bin:/usr/local/munki:/Users/c.wright/go/bin
    PERLBREW_HOME=/Us…

  • Chisel commented on perlbrew on OSX

    Argh! I set that '--local-lib' so long ago, I'm not even sure when, or why, I did it.

    Thank you so much for taking the time to trawl through my output and spot that.

    Removed that from the PERL_CPANM_OPT and successfully installed and perldoc'd a new module.

    As always ... it was down to me doing something daft.

  • Ether commented on perlbrew on OSX

    > As always ... it was down to me doing something daft.

    So it is for all of us :)

Subscribe to feed Responses to Comments from Graham Knop

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.