Make perlcritic tests pass
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 27 May 2017 21:14:17 +0000 (00:14 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 27 May 2017 21:14:23 +0000 (00:14 +0300)
lib/App/MusicExpo.pm

index 49276c124703efb78393e0c19e1c4d6db3f4dced..9f7de60d23804b309cad96209c80f123a3b50bdf 100644 (file)
@@ -8,6 +8,7 @@ our $VERSION = '1.002001';
 use HTML::Template::Compiled qw//;
 use Memoize qw/memoize/;
 
+use Carp qw/carp/;
 use DB_File qw//;
 use Encode qw/encode/;
 use File::Basename qw/fileparse/;
@@ -121,7 +122,7 @@ sub opusinfo {
                tracknumber => $tags->query('TRACKNUMBER'),
                tracktotal => $tags->query('TRACKTOTAL'),
                genre => $tags->query('GENRE'),
-               file => scalar fileparse $file
+               file => scalar fileparse $file,
        );
 
        freeze \%data;
@@ -132,7 +133,7 @@ my @optional_modules = (
        [ 'MP3::Info', \&mp3info, '.mp3' ],
        [ 'Ogg::Vorbis::Header::PurePerl', \&vorbisinfo, '.ogg', '.oga' ],
        [ 'MP4::Info', \&mp4info, '.mp4', '.aac', '.m4a' ],
-       [ 'Audio::Opusfile', \&opusinfo, '.opus' ]
+       [ 'Audio::Opusfile', \&opusinfo, '.opus' ],
 );
 
 my %info;
@@ -145,7 +146,7 @@ for (@optional_modules) {
 }
 
 unless (%info) {
-       warn 'No tags-reading module detected. Install one of the following modules: ' . join ', ', map { $_->[0] } @optional_modules;
+       carp 'No tags-reading module detected. Install one of the following modules: ' . join ', ', map { $_->[0] } @optional_modules;
 }
 
 sub normalizer{
This page took 0.01104 seconds and 4 git commands to generate.