-#!/usr/bin/env perl -w
+#!/usr/bin/env perl
# Copyright (C) 2007-2009 Martin A. Hansen.
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+use warnings;
use strict;
use Maasha::Biopieces;
use Maasha::Match;
map { Maasha::Biopieces::put_record( $_, $out ) } @{ $results };
}
-elsif ( @entries == 2 )
+else
{
- $results = Maasha::Match::match_mummer( [ $entries[ 0 ] ], [ $entries[ 1 ] ], $options, $tmp_dir );
+ $results = Maasha::Match::match_mummer( [ shift @entries ], \@entries, $options, $tmp_dir );
map { Maasha::Biopieces::put_record( $_, $out ) } @{ $results };
}