use base 'Exporter';
use FindBin;
+use Clipboard;
use lib "$FindBin::Bin/../lib";
=cut
if (-f "$FindBin::Bin/shh") {
+ $msg .= ' [silent]';
if ($log) {
- $log->msg("Not speaking because we were asked to be quiet - $msg");
+ $log->msg($msg);
} else {
- verbose "Not speaking because we were asked to be quiet - $msg";
+ verbose $msg;
} # if
return;
} # if
+ # Handle the case where $msg is not passed in. Then use the clipboard;
+ $msg = Clipboard->paste unless $msg;
+
# Handle the case where $msg is a filehandle
$msg = <$msg> if ref $msg eq 'GLOB';