--- nfo/perl/libs/shortcuts.pm 2003/02/09 04:49:45 1.1 +++ nfo/perl/libs/shortcuts.pm 2003/02/11 05:14:28 1.2 @@ -1,7 +1,10 @@ ## --------------------------------------------------------------------------- -## $Id: shortcuts.pm,v 1.1 2003/02/09 04:49:45 joko Exp $ +## $Id: shortcuts.pm,v 1.2 2003/02/11 05:14:28 joko Exp $ ## --------------------------------------------------------------------------- ## $Log: shortcuts.pm,v $ +## Revision 1.2 2003/02/11 05:14:28 joko +## + refactored code from libp.pm +## ## Revision 1.1 2003/02/09 04:49:45 joko ## + shortcuts now refactored to this file ## @@ -20,6 +23,7 @@ now today run_cmd run_cmds get_chomped + bool2status ); @@ -69,4 +73,9 @@ return $str; } +sub bool2status { + my $bool = shift; + return ($bool ? 'ok' : 'failed'); +} + 1;