X-Git-Url: https://code.th-h.de/?p=usenet%2Fnewsstats.git;a=blobdiff_plain;f=NewsStats.pm;h=3efc14b84f28a7bc39fcb4ab2ace05faa470c6b0;hp=a8c5b7b0d287429db7c9f747194cd4bc8a3fabfb;hb=f6d15ca78e16217b709d69f2977b28dd1eeabc02;hpb=2832c235b2497a02713b12197ed97fbde3a91e15;ds=sidebyside diff --git a/NewsStats.pm b/NewsStats.pm index a8c5b7b..3efc14b 100644 --- a/NewsStats.pm +++ b/NewsStats.pm @@ -18,6 +18,7 @@ require Exporter; @EXPORT = qw( $MySelf $MyVersion + $PackageVersion ReadOptions ReadConfig OverrideConfig @@ -40,6 +41,7 @@ require Exporter; Output => [qw(OutputData FormatOutput)], SQLHelper => [qw(SQLHierarchies SQLGroupList GetMaxLenght)]); $VERSION = '0.1'; +our $PackageVersion = '0.1'; use Data::Dumper; use File::Basename; @@ -82,7 +84,7 @@ sub ReadOptions { sub ShowVersion { ################################################################################ ### display version and exit - print "$MyVersion\nCopyright (c) 2010 Thomas Hochstein \n"; + print "NewsStats v$PackageVersion\n$MyVersion\nCopyright (c) 2010 Thomas Hochstein \n"; print "This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.\n"; exit(100); };