From 012e776a942aaed3733b0b6db5ecccd0cbc39b9d Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Mon, 19 Nov 2007 21:24:39 +1300 Subject: [PATCH] Use require, not use for the MythTV module. This means that if the module isn't installed the script can still run. --- bin/mythtv-status | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mythtv-status b/bin/mythtv-status index fa32ac9..66d3fcb 100755 --- a/bin/mythtv-status +++ b/bin/mythtv-status @@ -183,7 +183,7 @@ my $xml = eval { $parser->parse_string( $status ) }; ### Prep the Perl MythTV API if available. ### my $myth = undef; -eval { use MythTV }; +eval { require MythTV }; if (! $@) { eval { $myth = new MythTV() }; } -- 2.30.2