Skip to content

Instantly share code, notes, and snippets.

@onishi
Created November 9, 2010 08:22
Show Gist options
  • Save onishi/668857 to your computer and use it in GitHub Desktop.
Save onishi/668857 to your computer and use it in GitHub Desktop.
cpanm
#!/usr/bin/perl
use strict;
use warnings;
system(
"$ENV{HOME}/perl5/bin/cpanm",
map {
s/\.pm$// and s{/}{::}g; # Can't locate
s/^perl-// and s{-}{::}g; # yum
$_;
} @ARGV
);
@onishi
Copy link
Author

onishi commented Nov 9, 2010

you can copy and paste to cpanm
cpanm perl-Foo-Bar # rpm package like
cpanm Foo/Bar.pm # Can't locate in Foo/Bar.pm @inc

@motemen
Copy link

motemen commented Nov 9, 2010

cool

@kentaro
Copy link

kentaro commented Nov 10, 2010

kool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment