Skip to content

Instantly share code, notes, and snippets.

@ziguzagu
Last active December 15, 2015 20:09
Show Gist options
  • Select an option

  • Save ziguzagu/5316031 to your computer and use it in GitHub Desktop.

Select an option

Save ziguzagu/5316031 to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use strict;
use warnings;
use LWP::Simple;
my ($pkg, $from, $to) = @ARGV;
$pkg =~ s/::/-/g;
my $content = get("http://search.cpan.org/diff/${pkg}-${from}-${pkg}-${to}.-w.diff")
or die "oops. no content. try again!\n";
print $content;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment