Warn about old perl versions, which have broken __PACKAGE__
authorJamie Cameron <jcameron@webmin.com>
Thu, 5 Mar 2009 21:05:59 +0000 (21:05 +0000)
committerJamie Cameron <jcameron@webmin.com>
Thu, 5 Mar 2009 21:05:59 +0000 (21:05 +0000)
WebminCore.pm

index a59ebc2..427d13c 100644 (file)
@@ -29,6 +29,9 @@ push(@EXPORT, qw($config_directory $var_directory $remote_error_handler %month_t
 # Functions defined in themes
 push(@EXPORT, qw(&theme_post_save_domain &theme_post_save_domains &theme_post_save_server &theme_select_server &theme_select_domain &theme_post_save_folder &theme_post_change_modules));
 
+if ($] <= 5.008004) {
+       print STDERR "WARNING: Webmin needs Perl version 5.008004 or later!\n";
+       }
 require "web-lib.pl";
 require "ui-lib.pl";