X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Flist_genomes;h=accaffe9ca1e4953d8e3e57caa17a54225aa172f;hb=d3524a295189338df71482298e67d11587375420;hp=7a4f4577b30d0497eeeb62bcf466fdcb330ba7b0;hpb=66938be910a5642b50ddf28991649858b5c36580;p=biopieces.git diff --git a/bp_bin/list_genomes b/bp_bin/list_genomes index 7a4f457..accaffe 100755 --- a/bp_bin/list_genomes +++ b/bp_bin/list_genomes @@ -1,4 +1,4 @@ -#!/usr/bin/env perl -w +#!/usr/bin/env perl # Copyright (C) 2007-2009 Martin A. Hansen. @@ -26,7 +26,9 @@ # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< +use warnings; use strict; +use Term::ANSIColor; use Maasha::Common; use Maasha::Biopieces; @@ -70,9 +72,9 @@ foreach $genome ( sort keys %hash ) foreach $format ( sort keys %found ) { if ( exists $hash{ $genome }{ $format } ) { - push @row, "yes"; + push @row, colored( "yes", "green" ); } else { - push @row, "no"; + push @row, colored( "no", "red" ); } }