From: Andrew Ruthven Date: Mon, 19 Nov 2007 08:24:39 +0000 (+1300) Subject: Use require, not use for the MythTV module. X-Git-Tag: 0.5~23 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=012e776a942aaed3733b0b6db5ecccd0cbc39b9d;p=mythtv-status.git Use require, not use for the MythTV module. This means that if the module isn't installed the script can still run. --- 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() }; }