-#!/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;
-use Maasha::Filesys;
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
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 };
}
-Maasha::Filesys::dir_remove( $tmp_dir );
-
Maasha::Biopieces::close_stream( $in );
Maasha::Biopieces::close_stream( $out );