Album

 view release on metacpan or  search on metacpan

script/merge  view on Meta::CPAN

################ The Process ################

my $file = shift;
die("$file; $!\n") unless -s $file;

my %ht;

my @pre;
my @lines;

open( my $fh, '<:utf8', $file ) or die("$file: $!\n");
while ( <$fh> ) {
    chomp;
    next unless /\S/;
    if ( /^!(?!tag)/ && !%ht ) {
	push( @pre, $_ );
	next;
    }

    if ( /^!tag\s+(.*)/ ) {
	$ht{ substr( $_ = scalar(<$fh>), 0, 8 ) } = $1;



( run in 0.855 second using v1.01-cache-2.11-cpan-995e09ba956 )