diff --git a/Makefile.PL b/Makefile.PL index a02c839..6863f49 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -20,9 +20,9 @@ sub parseversion while() { - if( /VERSION = ([0-9\.]+)/ ) + if( /VERSION = '([0-9\.]+)'/ ) { - if ( $1 != $version ) + if ( $1 ne $version ) { die "Version mismatch. Changes says version is '$version', but 'bin/feedgnuplot' says it is '$1'"; } diff --git a/bin/feedgnuplot b/bin/feedgnuplot index 7eda297..3cb66cb 100755 --- a/bin/feedgnuplot +++ b/bin/feedgnuplot @@ -15,7 +15,8 @@ use Text::ParseWords; # for shellwords use Pod::Usage; use Time::Piece; -my $VERSION = 1.44; +# Makefile.PL assumes this is in '' +my $VERSION = '1.44'; my %options; interpretCommandline();