Skip to content

Instantly share code, notes, and snippets.

@deanwilson
Created August 6, 2009 14:57
Show Gist options
  • Select an option

  • Save deanwilson/163361 to your computer and use it in GitHub Desktop.

Select an option

Save deanwilson/163361 to your computer and use it in GitHub Desktop.
package File::Find::Rule::Dpkg;
# must get back to this at some point.
use strict;
use warnings;
use vars qw/$VERSION/;
use base 'File::Find::Rule';
$VERSION = '0.01';
sub File::Find::Rule::in {
my $self = shift;
my $package = shift;
chomp( my @files = `dpkg -L $package` );
return @files;
}
1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment