All pastes #78140 Raw Edit

Someone

public text v1 · immutable
·published 2006-07-03 20:27 UTC
rendered paste body
#!/usr/bin/perl
use strict;

my @foo=`emerge -pve world`;
my $muh;

my $bit;
foreach my $blah (@foo) {
        if ($blah =~ /groff/) { $bit = 1; }
                if (($blah =~ /\]\s(\w+\-\w+\/(\w+|\+)\-(\w|\.|\-)+)/ ) && $bit) { 
                $muh = $muh." =$1";
        }
}
print "$muh\n";