]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 787529: Use |use 5.10.1| everywhere
authorFrédéric Buclin <LpSolit@gmail.com>
Sat, 1 Sep 2012 21:43:00 +0000 (23:43 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Sat, 1 Sep 2012 21:43:00 +0000 (23:43 +0200)
r=wicked a=LpSolit

195 files changed:
Bugzilla.pm
Bugzilla/Attachment.pm
Bugzilla/Attachment/PatchReader.pm
Bugzilla/Auth.pm
Bugzilla/Auth/Login.pm
Bugzilla/Auth/Login/CGI.pm
Bugzilla/Auth/Login/Cookie.pm
Bugzilla/Auth/Login/Env.pm
Bugzilla/Auth/Login/Stack.pm
Bugzilla/Auth/Persist/Cookie.pm
Bugzilla/Auth/Verify.pm
Bugzilla/Auth/Verify/DB.pm
Bugzilla/Auth/Verify/LDAP.pm
Bugzilla/Auth/Verify/RADIUS.pm
Bugzilla/Auth/Verify/Stack.pm
Bugzilla/Bug.pm
Bugzilla/BugMail.pm
Bugzilla/BugUrl.pm
Bugzilla/BugUrl/Bugzilla.pm
Bugzilla/BugUrl/Bugzilla/Local.pm
Bugzilla/BugUrl/Debian.pm
Bugzilla/BugUrl/GitHub.pm
Bugzilla/BugUrl/Google.pm
Bugzilla/BugUrl/JIRA.pm
Bugzilla/BugUrl/Launchpad.pm
Bugzilla/BugUrl/MantisBT.pm
Bugzilla/BugUrl/SourceForge.pm
Bugzilla/BugUrl/Trac.pm
Bugzilla/CGI.pm
Bugzilla/Chart.pm
Bugzilla/Classification.pm
Bugzilla/Comment.pm
Bugzilla/Component.pm
Bugzilla/Config.pm
Bugzilla/Config/Admin.pm
Bugzilla/Config/Advanced.pm
Bugzilla/Config/Attachment.pm
Bugzilla/Config/Auth.pm
Bugzilla/Config/BugChange.pm
Bugzilla/Config/BugFields.pm
Bugzilla/Config/Common.pm
Bugzilla/Config/Core.pm
Bugzilla/Config/DependencyGraph.pm
Bugzilla/Config/General.pm
Bugzilla/Config/GroupSecurity.pm
Bugzilla/Config/LDAP.pm
Bugzilla/Config/MTA.pm
Bugzilla/Config/PatchViewer.pm
Bugzilla/Config/Query.pm
Bugzilla/Config/RADIUS.pm
Bugzilla/Config/ShadowDB.pm
Bugzilla/Config/UserMatch.pm
Bugzilla/Constants.pm
Bugzilla/DB.pm
Bugzilla/DB/Mysql.pm
Bugzilla/DB/Oracle.pm
Bugzilla/DB/Pg.pm
Bugzilla/DB/Schema.pm
Bugzilla/DB/Schema/Mysql.pm
Bugzilla/DB/Schema/Oracle.pm
Bugzilla/DB/Schema/Pg.pm
Bugzilla/DB/Schema/Sqlite.pm
Bugzilla/DB/Sqlite.pm
Bugzilla/Error.pm
Bugzilla/Extension.pm
Bugzilla/Field.pm
Bugzilla/Field/Choice.pm
Bugzilla/Field/ChoiceInterface.pm
Bugzilla/Flag.pm
Bugzilla/FlagType.pm
Bugzilla/Group.pm
Bugzilla/Hook.pm
Bugzilla/Install.pm
Bugzilla/Install/CPAN.pm
Bugzilla/Install/DB.pm
Bugzilla/Install/Filesystem.pm
Bugzilla/Install/Localconfig.pm
Bugzilla/Install/Requirements.pm
Bugzilla/Install/Util.pm
Bugzilla/Job/Mailer.pm
Bugzilla/JobQueue.pm
Bugzilla/JobQueue/Runner.pm
Bugzilla/Keyword.pm
Bugzilla/Mailer.pm
Bugzilla/Migrate.pm
Bugzilla/Migrate/Gnats.pm
Bugzilla/Milestone.pm
Bugzilla/Object.pm
Bugzilla/Product.pm
Bugzilla/RNG.pm
Bugzilla/Report.pm
Bugzilla/Search.pm
Bugzilla/Search/Clause.pm
Bugzilla/Search/Condition.pm
Bugzilla/Search/Quicksearch.pm
Bugzilla/Search/Recent.pm
Bugzilla/Search/Saved.pm
Bugzilla/Send/Sendmail.pm
Bugzilla/Series.pm
Bugzilla/Status.pm
Bugzilla/Template.pm
Bugzilla/Template/Context.pm
Bugzilla/Template/Plugin/Bugzilla.pm
Bugzilla/Template/Plugin/Hook.pm
Bugzilla/Token.pm
Bugzilla/Update.pm
Bugzilla/User.pm
Bugzilla/User/Setting.pm
Bugzilla/User/Setting/Lang.pm
Bugzilla/User/Setting/Skin.pm
Bugzilla/User/Setting/Timezone.pm
Bugzilla/UserAgent.pm
Bugzilla/Util.pm
Bugzilla/Version.pm
Bugzilla/WebService.pm
Bugzilla/WebService/Bug.pm
Bugzilla/WebService/Bugzilla.pm
Bugzilla/WebService/Constants.pm
Bugzilla/WebService/Group.pm
Bugzilla/WebService/Product.pm
Bugzilla/WebService/Server.pm
Bugzilla/WebService/Server/JSONRPC.pm
Bugzilla/WebService/Server/XMLRPC.pm
Bugzilla/WebService/User.pm
Bugzilla/WebService/Util.pm
Bugzilla/Whine.pm
Bugzilla/Whine/Query.pm
Bugzilla/Whine/Schedule.pm
admin.cgi
attachment.cgi
buglist.cgi
chart.cgi
colchange.cgi
collectstats.pl
config.cgi
contrib/Bugzilla.pm
createaccount.cgi
describecomponents.cgi
describekeywords.cgi
docs/lib/Pod/Simple/HTML/Bugzilla.pm
docs/lib/Pod/Simple/HTMLBatch/Bugzilla.pm
docs/makedocs.pl
duplicates.cgi
editclassifications.cgi
editcomponents.cgi
editfields.cgi
editflagtypes.cgi
editgroups.cgi
editkeywords.cgi
editmilestones.cgi
editparams.cgi
editproducts.cgi
editsettings.cgi
editusers.cgi
editvalues.cgi
editversions.cgi
editwhines.cgi
editworkflow.cgi
email_in.pl
enter_bug.cgi
extensions/create.pl
importxml.pl
index.cgi
install-module.pl
jobqueue.pl
jsonrpc.cgi
migrate.pl
mod_perl.pl
page.cgi
post_bug.cgi
process_bug.cgi
query.cgi
quips.cgi
relogin.cgi
report.cgi
reports.cgi
request.cgi
runtests.pl
sanitycheck.cgi
sanitycheck.pl
search_plugin.cgi
show_activity.cgi
show_bug.cgi
showdependencygraph.cgi
showdependencytree.cgi
summarize_time.cgi
t/002goodperl.t
testagent.cgi
testserver.pl
token.cgi
userprefs.cgi
votes.cgi
whine.pl
whineatnews.pl
xmlrpc.cgi

index ccd38406740471e3dcd66cce46b575a6311dccd0..f956f5a0ea6a63e5820d66fa1f6ebae12ddd9c4f 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla;
 
+use 5.10.1;
 use strict;
 
 # We want any compile errors to get to the browser, if possible.
index d6c7e39240154aba2c39ce645bd6794c119d430c..1c524c24b397b1ef7927357a0712ec9d2686be57 100644 (file)
@@ -5,10 +5,11 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-use strict;
-
 package Bugzilla::Attachment;
 
+use 5.10.1;
+use strict;
+
 =head1 NAME
 
 Bugzilla::Attachment - Bugzilla attachment class.
index e9cb189efaacfaf4c8672d13daaa7c4e997bf866..4583dbd518befcb45b3206b93d34efd965b8a6c9 100644 (file)
@@ -5,10 +5,11 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-use strict;
-
 package Bugzilla::Attachment::PatchReader;
 
+use 5.10.1;
+use strict;
+
 use Bugzilla::Error;
 use Bugzilla::Attachment;
 use Bugzilla::Util;
index 477dbffaa83adf231a721fc2fd1f0801aee4107b..412edd5a1d9ae6d3c6446c95c2bea04cf152e36a 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::Auth;
 
+use 5.10.1;
 use strict;
 use fields qw(
     _info_getter
index 290cb42ffd23ece6a7d990b876d2d2e7e74a5e93..33d63a425cddab64d07e3e5c6a01d00a5044a8a0 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::Auth::Login;
 
+use 5.10.1;
 use strict;
 use fields qw();
 
index 47ec556a70a057a978bc2013eecb623ad6515274..a4fb3aea2e17daea2a52f61cc5a6056420681719 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::Auth::Login::CGI;
+
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::Auth::Login);
 use constant user_can_create_account => 1;
 
index 5d4c8279ce6535c9a211f5d133a99bb62845341b..1f6f83f5e5f849961d87cbbb74e8e39acb778385 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::Auth::Login::Cookie;
+
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::Auth::Login);
 
 use Bugzilla::Constants;
index 393ac600df8e566b592d83e7bda5175f33846517..9b24c0edc18ff6fbe35f77f6a7b192fe1bcb7d49 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::Auth::Login::Env;
+
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::Auth::Login);
 
 use Bugzilla::Constants;
index 17a5855b635ed2fdf95b949d941c94df935fdb7b..ad5598576a89730ad888ff6e7b8a3237495176ae 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::Auth::Login::Stack;
+
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::Auth::Login);
 use fields qw(
     _stack
index ec212088d8ba31094e601ffe9597416a5ad19de8..15a2d490e2b47d2a6097957cfc0c8686618cd375 100644 (file)
@@ -6,6 +6,8 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::Auth::Persist::Cookie;
+
+use 5.10.1;
 use strict;
 use fields qw();
 
index ae256dd8c8d667cfc7d191b11e5df122e9ed6f0b..de8b4030d9f81b443b99e2209dea87ba26878c08 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::Auth::Verify;
 
+use 5.10.1;
 use strict;
 use fields qw();
 
index 6ca04f25976ff84ec6cef68ffc315bc275d8384c..dc074b20ac60954659185fb2d5d32bede418a9bf 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::Auth::Verify::DB;
+
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::Auth::Verify);
 
 use Bugzilla::Constants;
index 5704c5848a4086b95a23febba02742ee75700544..63e05ed457ca21699fe3e8be996574eb0f5c8099 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::Auth::Verify::LDAP;
+
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::Auth::Verify);
 use fields qw(
     ldap
index d6c4db8e8bc9d68b135f5962ec00b5858fa1d9bf..9fecec77e81aae5c44334e664481c8f8e4575746 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::Auth::Verify::RADIUS;
+
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::Auth::Verify);
 
 use Bugzilla::Constants;
index 0930d57ed73931d455c2e70f6b2d7fd92e27935e..52c449e22f9d90df59434e94d248e39b3a95bea8 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::Auth::Verify::Stack;
+
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::Auth::Verify);
 use fields qw(
     _stack
index 2e9ed52e00229592511706e149914fc745998c79..f47ed81c96026fb7346c7898c42d884165968e51 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::Bug;
 
+use 5.10.1;
 use strict;
 
 use Bugzilla::Attachment;
index 764b223db61bdd22b31a984d8a891a49fdfc1e3e..2c1ab5885503e500dcc28381ade6c7bd5e5b45c7 100644 (file)
@@ -5,10 +5,11 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-use strict;
-
 package Bugzilla::BugMail;
 
+use 5.10.1;
+use strict;
+
 use Bugzilla::Error;
 use Bugzilla::User;
 use Bugzilla::Constants;
index 8689e8a3502808e56bfc76a989a2ca058cee4824..ec6675e909a78b5a19d9b5e0b9a5bbe9395f8450 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::BugUrl;
+
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::Object);
 
 use Bugzilla::Util;
index 4db37eb7f97a1b0e397924a39f768f9da711e079..8e2f372268ac339b8fee86f5e9cc53f1ca277061 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::BugUrl::Bugzilla;
+
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::BugUrl);
 
 use Bugzilla::Error;
index 9631716ae2f2cd24ee8e432d2a28893b5352af31..360d5dd974ef04dd3219133fd88d2b16bd7093f9 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::BugUrl::Bugzilla::Local;
+
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::BugUrl::Bugzilla);
 
 use Bugzilla::Error;
index 78397bdd947ee61ee20ec2e0ac33eae1f07ad6af..f791a437ef48b98eb0ef9ac812342a1749773ef9 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::BugUrl::Debian;
+
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::BugUrl);
 
 ###############################
index 63be65bed8a042458833ebebb3edfe05cffed4d5..1dc325c8063c751491cb0eda0861865d8e8be32f 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::BugUrl::GitHub;
+
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::BugUrl);
 
 ###############################
index 8b8638c7a0a5a5df634750265716cad3b91604fc..809c92ccab7689320a445d8e1c6349e26cd297d3 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::BugUrl::Google;
+
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::BugUrl);
 
 ###############################
index f5f7ee5fa92abd61f29b57ad169c69e76c31a50c..d9614c4bdc08d69558ef05595cf9dc46413a9594 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::BugUrl::JIRA;
+
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::BugUrl);
 
 ###############################
index 87fb71a5dc8f5d28415bcae1687a830ad8f3e58b..f858f2895134ff1cbad0894f0432e23a116d8e3c 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::BugUrl::Launchpad;
+
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::BugUrl);
 
 ###############################
index 3d49ede69ee5a626e85ecd46c04853de25bd8a60..d774eca109ca79f5936605067ac85f8ae4b2a175 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::BugUrl::MantisBT;
+
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::BugUrl);
 
 ###############################
index 11cdd0ff186759596bc23a00668fddfaa7e99bab..ee9a3e7ca23292cb131c311c9446222a39f5d9c0 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::BugUrl::SourceForge;
+
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::BugUrl);
 
 ###############################
index 8f6e9cd0e8b01cddb04c4b26db9b6194a704b4da..ddad281feee1b66055daf57ea40ee8883caa2a7a 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::BugUrl::Trac;
+
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::BugUrl);
 
 ###############################
index a68195f224302e907b350bd3196e09293ae99855..99851c21de84ae09f0fddcd154e6485f8cda6bc5 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::CGI;
+
+use 5.10.1;
 use strict;
+
 use base qw(CGI);
 
 use Bugzilla::Constants;
index 0a655769fbb5e6ce5e9a998752316f49088e72a5..d157457c24ca0ec2e68f93ece4cc710373ec262a 100644 (file)
@@ -5,8 +5,6 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-use strict;
-
 # This module represents a chart.
 #
 # Note that it is perfectly legal for the 'lines' member variable of this
@@ -15,6 +13,9 @@ use strict;
 # the same points.
 package Bugzilla::Chart;
 
+use 5.10.1;
+use strict;
+
 use Bugzilla::Error;
 use Bugzilla::Util;
 use Bugzilla::Series;
index 2b35a8839146ce5f2c6a4b702005e5740bfa6da3..67ba8b46f579fa73400d1f06a95efbfd4603fa9c 100644 (file)
@@ -5,10 +5,11 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-use strict;
-
 package Bugzilla::Classification;
 
+use 5.10.1;
+use strict;
+
 use Bugzilla::Constants;
 use Bugzilla::Field;
 use Bugzilla::Util;
index 549753d2b00596d8b96c4fcc7367754ef023ef51..7cf924893d23cced8e88bd201b178c33607b653c 100644 (file)
@@ -5,10 +5,11 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-use strict;
-
 package Bugzilla::Comment;
 
+use 5.10.1;
+use strict;
+
 use base qw(Bugzilla::Object);
 
 use Bugzilla::Attachment;
index f189639468055dbe3cf8c108e92b79ff00847454..b8321cbf927ce5cba91c5a79c1f874486ed6ad4f 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::Component;
+
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object);
 
 use Bugzilla::Constants;
index 150996e05dcedad78da0a98a978f141cd2243277..f422de227bf0a78aed3ab8d24d57f36bd42c600c 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::Config;
 
+use 5.10.1;
 use strict;
 
 use base qw(Exporter);
index 7be3e54d110f69c308ed4fef8fbf6e45982e325e..811f7029e88a278efd5b742e476fc5bcb9a11d8a 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::Config::Admin;
 
+use 5.10.1;
 use strict;
 
 use Bugzilla::Config::Common;
index fa5b7d249fb330fbce87749e3e9cba1c9ce717ea..eec2816d26d2244a1e8ca952419aab5022dd9451 100644 (file)
@@ -6,6 +6,8 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::Config::Advanced;
+
+use 5.10.1;
 use strict;
 
 use Bugzilla::Config::Common;
index ba19f778231d651e60b2753d632e52d660145f1b..f31e57254abed16a3be57eb56f87226040f78d94 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::Config::Attachment;
 
+use 5.10.1;
 use strict;
 
 use Bugzilla::Config::Common;
index 19ba59b0c39ea04ddfd68af60249cd3ddecf5e1f..579f86ad8d3fd1560b1688c437d01d9480919417 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::Config::Auth;
 
+use 5.10.1;
 use strict;
 
 use Bugzilla::Config::Common;
index 68cfe5676e656d90edf34168da213bd85a482505..53fc68d00c87b36dd81557abc8dee6732db4816a 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::Config::BugChange;
 
+use 5.10.1;
 use strict;
 
 use Bugzilla::Config::Common;
index 7ae9ae355216f2a26b6b7f562da95cf9ea97b588..e24f75661892657ea1e440157defd60a319f23cb 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::Config::BugFields;
 
+use 5.10.1;
 use strict;
 
 use Bugzilla::Config::Common;
index 0e3551d13f7bced1eb8674e19572050dc3c2b1e2..32e8ba569723d8830a3a49df5d4cf2e2b3308737 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::Config::Common;
 
+use 5.10.1;
 use strict;
 
 use Email::Address;
index f2510d2b2c33ea737b5241a4b2d06eba3476ccfd..faf86c567360ca49eb348ecbe8d2bd4889a75e2f 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::Config::Core;
 
+use 5.10.1;
 use strict;
 
 use Bugzilla::Config::Common;
index cc61e3588784df755fe38c506ff47520f23d360a..42f34e30e95d5ec7983d302f8961d72564ad6e08 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::Config::DependencyGraph;
 
+use 5.10.1;
 use strict;
 
 use Bugzilla::Config::Common;
index 6e00b202a19ff31d23218b491d344c52f31b8733..a401e98edd63b8bd58253008cf6da9940a30e5db 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::Config::General;
+
+use 5.10.1;
 use strict;
+
 use Bugzilla::Config::Common;
 
 our $sortkey = 150;
index 54f5935a614179efb71a80b5fbc868f6e048bfbf..d5f02f42dad49f905e8d0d768151c40e36f7c833 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::Config::GroupSecurity;
 
+use 5.10.1;
 use strict;
 
 use Bugzilla::Config::Common;
index daa7f72bbfb25a78d4954121df5e50b892b21cb2..4a46f40d2cc35093f1c77c1b3021f912f6fb69ce 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::Config::LDAP;
 
+use 5.10.1;
 use strict;
 
 use Bugzilla::Config::Common;
index bf038cf49300346c5ff092de371c489f50329f43..a6ca3661322fb5c497ba2d9e59f3e38254ebc937 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::Config::MTA;
 
+use 5.10.1;
 use strict;
 
 use Bugzilla::Config::Common;
index 08e8028f312f40b168b7620d66cd45e156baadf6..2005e4c4a1c5603859b86acc389e723c3a3eb9a4 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::Config::PatchViewer;
 
+use 5.10.1;
 use strict;
 
 use Bugzilla::Config::Common;
index fe54d67abdfb124a9c2a38896d58305c34caf129..e1287386b7cf403258e4cf4f2566f8ff953d0b10 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::Config::Query;
 
+use 5.10.1;
 use strict;
 
 use Bugzilla::Config::Common;
index 312be1ded6575fdedb0a2de98fc47a74d4a6092d..17fbdd7ddfd2765fcb16446179ed7bda072408b5 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::Config::RADIUS;
 
+use 5.10.1;
 use strict;
 
 use Bugzilla::Config::Common;
index c0ff590960304d1c57b1d64ebfe71a9bf3d24524..65c572980ff457f578ea35cd0718e9a87834eaf1 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::Config::ShadowDB;
 
+use 5.10.1;
 use strict;
 
 use Bugzilla::Config::Common;
index 5b98a25eac56fc01fb6aa481ac77a0886819dd71..53fb5136fbd509ab72610a19a13e2e104fd11853 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::Config::UserMatch;
 
+use 5.10.1;
 use strict;
 
 use Bugzilla::Config::Common;
index c02558faa9ca062cb555b1a12e632dd030a4bbe5..1ec92183534d8384b419c3f8031d789d9f58c1c7 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::Constants;
+
+use 5.10.1;
 use strict;
+
 use base qw(Exporter);
 
 # For bz_locations
index 7d289aaa1177ac46c5d70080269f7b580b4ef864..7756ff53b79117657e03f76e5671de236bd5325b 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::DB;
 
+use 5.10.1;
 use strict;
 
 use DBI;
index 90bacc02a36ac71b5654a09811b8186c3f806c08..9cfa83462509a8a6d0d35da7610df979eddd3ea8 100644 (file)
@@ -20,7 +20,10 @@ For interface details see L<Bugzilla::DB> and L<DBI>.
 =cut
 
 package Bugzilla::DB::Mysql;
+
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::DB);
 
 use Bugzilla::Constants;
index f5045b2c71771656b67592917c70e9ee244f06a7..3f7bc2b8728d345ce37e4e72afab4ffadfb10cac 100644 (file)
@@ -20,7 +20,10 @@ For interface details see L<Bugzilla::DB> and L<DBI>.
 =cut
 
 package Bugzilla::DB::Oracle;
+
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::DB);
 
 use DBD::Oracle;
@@ -706,6 +709,10 @@ sub _get_create_trigger_ddl {
 ############################################################################
 
 package Bugzilla::DB::Oracle::st;
+
+use 5.10.1;
+use strict;
+
 use base qw(DBI::st);
  
 sub fetchrow_arrayref {
index c794bdcc52b503c09541caa6ac3696e79d905ba7..80bfb4f5f767b986909b8337ff79d49daf1faeec 100644 (file)
@@ -21,6 +21,7 @@ For interface details see L<Bugzilla::DB> and L<DBI>.
 
 package Bugzilla::DB::Pg;
 
+use 5.10.1;
 use strict;
 
 use Bugzilla::Error;
index eabee07c3cc199263bf5445d60f14e23d9adcf34..eb46aa80fdec1e1dde554831c402365fdf359f8a 100644 (file)
@@ -15,7 +15,9 @@ package Bugzilla::DB::Schema;
 #
 ###########################################################################
 
+use 5.10.1;
 use strict;
+
 use Bugzilla::Error;
 use Bugzilla::Hook;
 use Bugzilla::Util;
index 020549a893834ac9122193115017230ab9bae43e..8b06dc42ba961bf89e979e3a2e8ad6fcd8e39bb7 100644 (file)
@@ -13,7 +13,9 @@ package Bugzilla::DB::Schema::Mysql;
 #
 ###############################################################################
 
+use 5.10.1;
 use strict;
+
 use Bugzilla::Error;
 
 use base qw(Bugzilla::DB::Schema);
index 381906d2e0e67a72e6d1ecda1c7c052e3151e29c..26141c5f49742b5adebaad1bb266e1f6145c84e9 100644 (file)
@@ -13,6 +13,7 @@ package Bugzilla::DB::Schema::Oracle;
 #
 ###############################################################################
 
+use 5.10.1;
 use strict;
 
 use base qw(Bugzilla::DB::Schema);
index 3dc0fe85e882c34266cd7ecbe381ef29988003a2..8dcd09b896dc2df5bc52742fa6d668d643aeb7f0 100644 (file)
@@ -13,7 +13,9 @@ package Bugzilla::DB::Schema::Pg;
 #
 ###############################################################################
 
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::DB::Schema);
 use Storable qw(dclone);
 
index 4cfc2b0525d5797202fb5e0c4ddf422a8598e95f..780764a6994c4cd1bcc8b932eb2a361974e20242 100644 (file)
@@ -5,8 +5,11 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-use strict;
 package Bugzilla::DB::Schema::Sqlite;
+
+use 5.10.1;
+use strict;
+
 use base qw(Bugzilla::DB::Schema);
 
 use Bugzilla::Error;
index f27ad71431061f5067bcff0d9a9382052a89e5e3..5564e21df40bad20e89b56902c3466c7e996150b 100644 (file)
@@ -5,8 +5,11 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-use strict;
 package Bugzilla::DB::Sqlite;
+
+use 5.10.1;
+use strict;
+
 use base qw(Bugzilla::DB);
 
 use Bugzilla::Constants;
index e1df5ddbb14e5f4c6cfbfe47cca73ab38931c26b..03fc8d6428a2a550e54c22d066981fdaec8295e1 100644 (file)
@@ -7,7 +7,9 @@
 
 package Bugzilla::Error;
 
+use 5.10.1;
 use strict;
+
 use base qw(Exporter);
 
 @Bugzilla::Error::EXPORT = qw(ThrowCodeError ThrowTemplateError ThrowUserError);
index 49422eca36340b4a8eeedf584ebe228b4bd21869..a02a2783ad2cd3df2b55f2a5da66643cd71382a2 100644 (file)
@@ -6,6 +6,8 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::Extension;
+
+use 5.10.1;
 use strict;
 
 use Bugzilla::Constants;
index 228bea73793a7dfd60ae2f24336eedeb2f01c66c..64d5da5749a9e042b81138ed03ddb5c7bd7988f5 100644 (file)
@@ -57,6 +57,7 @@ in addition to what is documented here.
 
 package Bugzilla::Field;
 
+use 5.10.1;
 use strict;
 
 use base qw(Exporter Bugzilla::Object);
index 8c5873fdb171e6d9a7741bb1dc916d207ac5d68e..2b6d8195fadd30a7c486436fa4d14058fc3f3e81 100644 (file)
@@ -5,10 +5,11 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-use strict;
-
 package Bugzilla::Field::Choice;
 
+use 5.10.1;
+use strict;
+
 use base qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object);
 
 use Bugzilla::Config qw(SetParam write_params);
index ad0a61487a5cd1f69cac219d38ffc5e12e23ed3b..c6ca2bc2d2581653947fdb84e1ef062130442dc9 100644 (file)
@@ -6,6 +6,8 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::Field::ChoiceInterface;
+
+use 5.10.1;
 use strict;
 
 use Bugzilla::Constants;
index 22a42d773fe0442ec9da9e2f5664d2661c3dd924..5c77eb7cf888d4843c1a98340daafb6663b0f000 100644 (file)
@@ -5,10 +5,11 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-use strict;
-
 package Bugzilla::Flag;
 
+use 5.10.1;
+use strict;
+
 =head1 NAME
 
 Bugzilla::Flag - A module to deal with Bugzilla flag values.
index d313a62b9059a35e6e256c4a916b386feea9b520..7f29c4266f4f600374435102826a5148aa82be84 100644 (file)
@@ -5,10 +5,11 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-use strict;
-
 package Bugzilla::FlagType;
 
+use 5.10.1;
+use strict;
+
 =head1 NAME
 
 Bugzilla::FlagType - A module to deal with Bugzilla flag types.
index 2d4e5a0a48a69bbb009d120f7e9e825b8c8f214e..a5b108723c4b83178dcbec56ea2c6751396edb4e 100644 (file)
@@ -5,10 +5,11 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-use strict;
-
 package Bugzilla::Group;
 
+use 5.10.1;
+use strict;
+
 use base qw(Bugzilla::Object);
 
 use Bugzilla::Constants;
index 3b8b528051b5579d231b16b26c357a6877d82890..5ac07046e801e0ed57cca066192d0bca0d58dabf 100644 (file)
@@ -6,6 +6,8 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::Hook;
+
+use 5.10.1;
 use strict;
 
 sub process {
index 4954dbfd03039e0af00d20385bbf8ccac36c7978..d36bd2d72a65d000156a9b4814027524415c099c 100644 (file)
@@ -15,6 +15,7 @@ package Bugzilla::Install;
 # make those assumptions, then it should go into one of the
 # packages under the Bugzilla::Install namespace.
 
+use 5.10.1;
 use strict;
 
 use Bugzilla::Component;
@@ -25,7 +26,7 @@ use Bugzilla::Group;
 use Bugzilla::Product;
 use Bugzilla::User;
 use Bugzilla::User::Setting;
-use Bugzilla::Util qw(get_text say);
+use Bugzilla::Util qw(get_text);
 use Bugzilla::Version;
 
 use constant STATUS_WORKFLOW => (
index 10e0cce6688be7e80ac29aee59ac47d0709ffeff..a0f059927dfcf055ae40de939b7a4a778d0ab147 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::Install::CPAN;
+
+use 5.10.1;
 use strict;
+
 use base qw(Exporter);
 our @EXPORT = qw(
     BZ_LIB
index a6f08848282dd902e18ee6a011601367576ab52b..abf57ac27c11b77507c5792cf13de2dee32f9bb8 100644 (file)
@@ -10,6 +10,7 @@ package Bugzilla::Install::DB;
 # NOTE: This package may "use" any modules that it likes,
 # localconfig is available, and params are up to date. 
 
+use 5.10.1;
 use strict;
 
 use Bugzilla::Constants;
index cf61a6ec25d43a91d8942f4a5867395095893ffa..6b768cbbb69d55c83e7bcfe613255bcab5203f9b 100644 (file)
@@ -15,6 +15,7 @@ package Bugzilla::Install::Filesystem;
 # * Files do not have the correct permissions.
 # * The database does not exist.
 
+use 5.10.1;
 use strict;
 
 use Bugzilla::Constants;
index 4f1579c862d80d2c8bc77945e862416ae27a7dea..4e54da3cfa0e41523799ca8585cb7e724a623c69 100644 (file)
@@ -15,6 +15,7 @@ package Bugzilla::Install::Localconfig;
 # * Files do not have the correct permissions
 # * The database is not up to date
 
+use 5.10.1;
 use strict;
 
 use Bugzilla::Constants;
index 24aa1cb822b7c7fb1d632600095cbbaf60b124f7..5dbb8344abe22f3223c2a4a4f3db4f4497f8e65a 100644 (file)
@@ -13,6 +13,7 @@ package Bugzilla::Install::Requirements;
 # Subroutines may "require" and "import" from modules, but they
 # MUST NOT "use."
 
+use 5.10.1;
 use strict;
 
 use Bugzilla::Constants;
index ed23d0093429a5393ef902d48d309b8dcde258fe..8548717e41d4abedc68d3c3df34ede23aba13a48 100644 (file)
@@ -11,6 +11,7 @@ package Bugzilla::Install::Util;
 # module may require *only* Bugzilla::Constants and built-in
 # perl modules.
 
+use 5.10.1;
 use strict;
 
 use Bugzilla::Constants;
index 958089e455a90f72e1986bcb573bbec257c30cce..d6f08adabb082758099500916bc85bb35aa3e3d5 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::Job::Mailer;
+
+use 5.10.1;
 use strict;
+
 use Bugzilla::Mailer;
 BEGIN { eval "use base qw(TheSchwartz::Worker)"; }
 
index f8bd6a615e9fafb32c3b93205133ce1a798af669..18723446cbd30df1a9a493b215c9f35890158172 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::JobQueue;
 
+use 5.10.1;
 use strict;
 
 use Bugzilla::Constants;
index 6c837369f978ce8f0089135a0db58dc1cac7ea74..e38e6ce590423b88747be35537f3f169ba963b6b 100644 (file)
@@ -11,7 +11,9 @@
 
 package Bugzilla::JobQueue::Runner;
 
+use 5.10.1;
 use strict;
+
 use Cwd qw(abs_path);
 use File::Basename;
 use File::Copy;
index a6e0b6d270e37cc224c89eae9707b3557363594b..b933c11f81a4e15c01c6b3a78466176c62c8ea61 100644 (file)
@@ -5,10 +5,11 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-use strict;
-
 package Bugzilla::Keyword;
 
+use 5.10.1;
+use strict;
+
 use base qw(Bugzilla::Object);
 
 use Bugzilla::Error;
index 5ef7310635d1b76212dd4f529d36778705bfea9f..203121de17f2f778a94e96d16f219a133a6660fb 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::Mailer;
 
+use 5.10.1;
 use strict;
 
 use base qw(Exporter);
index 0975a0633ba8eba5a365153828ed97498092bf06..6dbe6ef10ca46c8296782413bbd89c7519024e7e 100644 (file)
@@ -6,6 +6,8 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::Migrate;
+
+use 5.10.1;
 use strict;
 
 use Bugzilla::Attachment;
@@ -16,7 +18,7 @@ use Bugzilla::Error;
 use Bugzilla::Install::Requirements ();
 use Bugzilla::Install::Util qw(indicate_progress);
 use Bugzilla::Product;
-use Bugzilla::Util qw(get_text trim generate_random_password say);
+use Bugzilla::Util qw(get_text trim generate_random_password);
 use Bugzilla::User ();
 use Bugzilla::Status ();
 use Bugzilla::Version;
index 05d3b3739f1485bccd5824e786eacd772d8c2d3f..6022bdbbb776a22deb477d2a7607d0a02f9711e6 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::Migrate::Gnats;
+
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::Migrate);
 
 use Bugzilla::Constants;
index ef8ecbab57b79d950714e9ff8117a39c1b0fb251..8f243232da11142545b60d9e0505ef566df37586 100644 (file)
@@ -5,10 +5,11 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-use strict;
-
 package Bugzilla::Milestone;
 
+use 5.10.1;
+use strict;
+
 use base qw(Bugzilla::Object);
 
 use Bugzilla::Constants;
index 531b81711138682e897c8bde31d7293245ec0d3f..fa4c4e7900b38e22877db0d138d2a9589aed2c1c 100644 (file)
@@ -5,10 +5,11 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-use strict;
-
 package Bugzilla::Object;
 
+use 5.10.1;
+use strict;
+
 use Bugzilla::Constants;
 use Bugzilla::Hook;
 use Bugzilla::Util;
index fdebc6b00740862a945cfe00f5810a888ddc04a3..894db422ee893807741178bad49c3529a14b250a 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::Product;
+
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::Field::ChoiceInterface Bugzilla::Object);
 
 use Bugzilla::Constants;
index 457d2cae028d647fec4121f455ebdc007796de6b..59eb3195c6d111d6f06fed1e9d4a46a5a6836639 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::RNG;
+
+use 5.10.1;
 use strict;
+
 use base qw(Exporter);
 use Bugzilla::Constants qw(ON_WINDOWS);
 
index 4c9f3322641b051ea1a7eb2df2794a13d789b89a..097bbb0743a8a04c0c727ebcf27e4bc6eadb8445 100644 (file)
@@ -5,10 +5,11 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-use strict;
-
 package Bugzilla::Report;
 
+use 5.10.1;
+use strict;
+
 use base qw(Bugzilla::Object);
 
 use Bugzilla::CGI;
index aaa3c208b5b1f21a6c4aebd25e4b3487eac288d1..c64ff6de2eed80b37de40fbf0c14d42649726355 100644 (file)
@@ -5,9 +5,11 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+package Bugzilla::Search;
+
+use 5.10.1;
 use strict;
 
-package Bugzilla::Search;
 use base qw(Exporter);
 @Bugzilla::Search::EXPORT = qw(
     IsValidQueryType
index 6e682e7cf9d3c2344e0e3c1ec9864becfcf58a26..ff50cb944e7978f256eca2c1ab6190b04078cda0 100644 (file)
@@ -6,6 +6,8 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::Search::Clause;
+
+use 5.10.1;
 use strict;
 
 use Bugzilla::Error;
index 2ca723727657927cffcb44fe01e70364069d97bc..ac6947484a0cbf14e6f047858063331c9610469d 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::Search::Condition;
+
+use 5.10.1;
 use strict;
+
 use base qw(Exporter);
 our @EXPORT_OK = qw(condition);
 
index 17c5635ff17bd14d513a498fcc502a6f1734fcc4..d686fde03cdc2546fb8491832815dec2436b649e 100644 (file)
@@ -7,7 +7,7 @@
 
 package Bugzilla::Search::Quicksearch;
 
-# Make it harder for us to do dangerous things in Perl.
+use 5.10.1;
 use strict;
 
 use Bugzilla::Error;
index 02c3ec37a5f920199d7f88b588ccb7bfb2333bb9..00b71a91df2a34d9507f714fe2208d39c347b6a4 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::Search::Recent;
+
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::Object);
 
 use Bugzilla::Constants;
index c9885c9cec0dc3971dd20aedadb135596f72dbb8..f6e9badabb7a62802be631a59635678a836072f4 100644 (file)
@@ -5,10 +5,11 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-use strict;
-
 package Bugzilla::Search::Saved;
 
+use 5.10.1;
+use strict;
+
 use base qw(Bugzilla::Object);
 
 use Bugzilla::CGI;
index 9513134f4432774d80c7625b923fa97bedb46fb1..b15f48043f8f96e54d9e10691c160326cb79061f 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::Send::Sendmail;
 
+use 5.10.1;
 use strict;
 
 use base qw(Email::Send::Sendmail);
index f2ed9a4affcf632c0a1fd14b323adb4a02dff782..e7c2ef005a917a626743430b1ce3534a7a11547f 100644 (file)
@@ -5,8 +5,6 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-use strict;
-
 # This module implements a series - a set of data to be plotted on a chart.
 #
 # This Series is in the database if and only if self->{'series_id'} is defined. 
@@ -16,6 +14,9 @@ use strict;
 
 package Bugzilla::Series;
 
+use 5.10.1;
+use strict;
+
 use Bugzilla::Error;
 use Bugzilla::Util;
 
index 2821f7c6e9f11f5f012957fec504bab4e861fc4d..33277fed7bdf942c3a841dbc6497b0b994dd68d7 100644 (file)
@@ -5,11 +5,11 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-use strict;
-
 package Bugzilla::Status;
 
-use Bugzilla::Error;
+use 5.10.1;
+use strict;
+
 # This subclasses Bugzilla::Field::Choice instead of implementing 
 # ChoiceInterface, because a bug status literally is a special type
 # of Field::Choice, not just an object that happens to have the same
@@ -23,6 +23,8 @@ use base qw(Bugzilla::Field::Choice Exporter);
     closed_bug_statuses
 );
 
+use Bugzilla::Error;
+
 ################################
 #####   Initialization     #####
 ################################
index a38d07e7ffe1f1101f9af75a07dad24e01ef07aa..6685a74318233c7ac9f3181bda5b0c54d8230522 100644 (file)
@@ -8,6 +8,7 @@
 
 package Bugzilla::Template;
 
+use 5.10.1;
 use strict;
 
 use Bugzilla::Constants;
index 9dc1f08f9eee77bf1b51c865d49c956df9e49247..937ac33b13c6777af857fceb6bfe3223d1807476 100644 (file)
@@ -7,7 +7,10 @@
 
 # This exists to implement the template-before_process hook.
 package Bugzilla::Template::Context;
+
+use 5.10.1;
 use strict;
+
 use base qw(Template::Context);
 
 use Bugzilla::Hook;
index e2b59c7a8204982fbcedc8255403b20e1a83cd24..044c9eed12d8f5f7437814888bc949646a97d21d 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::Template::Plugin::Bugzilla;
 
+use 5.10.1;
 use strict;
 
 use base qw(Template::Plugin);
index f1de7a602ca3e86c7496e35f40247588ea56fc4e..52b3703dce22f07c17b61a2ab0d3e76d995fa77b 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::Template::Plugin::Hook;
+
+use 5.10.1;
 use strict;
+
 use base qw(Template::Plugin);
 
 use Bugzilla::Constants;
index 264a28db132d1bbbacb397f3ea3b8adb8e77183a..f7caa0e31608aa03b88a043ed1ae94cb51f9749f 100644 (file)
@@ -5,16 +5,11 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-################################################################################
-# Module Initialization
-################################################################################
+package Bugzilla::Token;
 
-# Make it harder for us to do dangerous things in Perl.
+use 5.10.1;
 use strict;
 
-# Bundle the functions in this file together into the "Bugzilla::Token" package.
-package Bugzilla::Token;
-
 use Bugzilla::Constants;
 use Bugzilla::Error;
 use Bugzilla::Mailer;
index 29133ecce06e2f846a42e1b3a9d08a6095d879f1..6a101219956f355f3b4c9a9624452798d648deae 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::Update;
 
+use 5.10.1;
 use strict;
 
 use Bugzilla::Constants;
index 0bf94508475ebacae54656ba5608c0d3eaffe8e8..87255b20a040d1170d0fce5d830594f4d52781e7 100644 (file)
@@ -5,16 +5,11 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-################################################################################
-# Module Initialization
-################################################################################
+package Bugzilla::User;
 
-# Make it harder for us to do dangerous things in Perl.
+use 5.10.1;
 use strict;
 
-# This module implements utilities for dealing with Bugzilla users.
-package Bugzilla::User;
-
 use Bugzilla::Error;
 use Bugzilla::Util;
 use Bugzilla::Constants;
index 6fadfb35231167e95becdfb18bb4552cd30584ba..52a5ff5aa438beb44e27dd5f03ba748aa4d91152 100644 (file)
@@ -8,7 +8,9 @@
 
 package Bugzilla::User::Setting;
 
+use 5.10.1;
 use strict;
+
 use base qw(Exporter);
 
 
index 71b01d62f6c4143f796444b803c819169f39bfe3..0dcec9aa1be70edfe2d75ac530f98442dc54929b 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::User::Setting::Lang;
 
+use 5.10.1;
 use strict;
 
 use base qw(Bugzilla::User::Setting);
index c75ce7568eb78aea7f598749364bad327a45dbef..3181fdded1696b0e016dc91b4fe3376bcb3db8d9 100644 (file)
@@ -8,6 +8,7 @@
 
 package Bugzilla::User::Setting::Skin;
 
+use 5.10.1;
 use strict;
 
 use base qw(Bugzilla::User::Setting);
index 91f997774f2a5beadd9f04ad6ef21b96c0edb7ad..962e0a7ff096d3dd49913fe6d9d5ee707dd95c9b 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::User::Setting::Timezone;
 
+use 5.10.1;
 use strict;
 
 use DateTime::TimeZone;
index b5d55213053756f38fefe5cf3cc340b4db68d589..627120efc07e5bd111f4c654ce5e9129aee9e8ab 100644 (file)
@@ -7,7 +7,9 @@
 
 package Bugzilla::UserAgent;
 
+use 5.10.1;
 use strict;
+
 use base qw(Exporter);
 our @EXPORT = qw(detect_platform detect_op_sys);
 
index 78ef21e1d7242041f067e9f8690b85c6f2b7eaf8..9e1a01e2d1bc17f0a19a20fc8c445a2993a1289b 100644 (file)
@@ -7,8 +7,8 @@
 
 package Bugzilla::Util;
 
+use 5.10.1;
 use strict;
-use feature ':5.10';
 
 use base qw(Exporter);
 @Bugzilla::Util::EXPORT = qw(trick_taint detaint_natural detaint_signed
@@ -16,7 +16,7 @@ use base qw(Exporter);
                              css_class_quote html_light_quote
                              i_am_cgi correct_urlbase remote_ip validate_ip
                              do_ssl_redirect_if_required use_attachbase
-                             diff_arrays on_main_db say
+                             diff_arrays on_main_db
                              trim wrap_hard wrap_comment find_wrap_point
                              format_time validate_date validate_time datetime_from
                              is_7bit_clean bz_crypt generate_random_password
index 02f2a70d81685801599b7ca51528f7793c3ec5ad..449630a6d9e43928899fc03490e5334bd1b69eb6 100644 (file)
@@ -5,10 +5,11 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-use strict;
-
 package Bugzilla::Version;
 
+use 5.10.1;
+use strict;
+
 use base qw(Bugzilla::Object);
 
 use Bugzilla::Install::Util qw(vers_cmp);
index 88ffa3f9612bb65e8533e9e25324583aeb12c1b5..38e0f510fb1375a331848471ce54040c15cf1d50 100644 (file)
@@ -8,7 +8,10 @@
 # This is the base class for $self in WebService method calls. For the 
 # actual RPC server, see Bugzilla::WebService::Server and its subclasses.
 package Bugzilla::WebService;
+
+use 5.10.1;
 use strict;
+
 use Bugzilla::WebService::Server;
 
 # Used by the JSON-RPC server to convert incoming date fields apprpriately.
index 75c3c2f61cc95a4973fafdb46bb5a0f3c2a94d39..1c8811b65f970457d707ae2d5782e338587ce95b 100644 (file)
@@ -7,7 +7,9 @@
 
 package Bugzilla::WebService::Bug;
 
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::WebService);
 
 use Bugzilla::Comment;
index f441cee90c98747d4c42485b9376e23d4ded6d86..471110566041cf024e12d420f860767e394c8575 100644 (file)
@@ -7,7 +7,9 @@
 
 package Bugzilla::WebService::Bugzilla;
 
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::WebService);
 use Bugzilla::Constants;
 use Bugzilla::Util qw(datetime_from);
index 491970291c0f1998c944469ca66a45ac72774de9..dcd3a9fd782518f18cef8a9941a36a34e7d9ff13 100644 (file)
@@ -7,7 +7,9 @@
 
 package Bugzilla::WebService::Constants;
 
+use 5.10.1;
 use strict;
+
 use base qw(Exporter);
 
 our @EXPORT = qw(
index d7506aa3d9b4c6e38cabe54edbcef5ebc96162db..79ce1658b07ae7f32e33b9007e0ff63f10b827a3 100644 (file)
@@ -7,7 +7,9 @@
 
 package Bugzilla::WebService::Group;
 
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::WebService);
 use Bugzilla::Constants;
 use Bugzilla::Error;
index 18594d7260e77b00309504637d9656e426728664..8d6fc5df209f4816527f41fcd5001c7f93a2f53b 100644 (file)
@@ -7,7 +7,9 @@
 
 package Bugzilla::WebService::Product;
 
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::WebService);
 use Bugzilla::Product;
 use Bugzilla::User;
index a43ed204c9ac728911cd1902d262a027cb85f128..5f179517812639753667350e919857c69edf4ba1 100644 (file)
@@ -6,6 +6,8 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::WebService::Server;
+
+use 5.10.1;
 use strict;
 
 use Bugzilla::Error;
index 804d7874efc6df4fe0f9df22a5bc5a9b7a3b6b3e..46dd6b8da85eeabda6008a8d9b8a6e46661acf20 100644 (file)
@@ -7,7 +7,9 @@
 
 package Bugzilla::WebService::Server::JSONRPC;
 
+use 5.10.1;
 use strict;
+
 use Bugzilla::WebService::Server;
 BEGIN {
     our @ISA = qw(Bugzilla::WebService::Server);
index e8fb5de997d4ab7c6751934ccb3c0bb057ac6919..22396bce1df8ea3e41cdb543db0b7c22d277917c 100644 (file)
@@ -7,7 +7,9 @@
 
 package Bugzilla::WebService::Server::XMLRPC;
 
+use 5.10.1;
 use strict;
+
 use XMLRPC::Transport::HTTP;
 use Bugzilla::WebService::Server;
 if ($ENV{MOD_PERL}) {
@@ -66,7 +68,10 @@ sub handle_login {
 # This exists to validate input parameters (which XMLRPC::Lite doesn't do)
 # and also, in some cases, to more-usefully decode them.
 package Bugzilla::XMLRPC::Deserializer;
+
+use 5.10.1;
 use strict;
+
 # We can't use "use base" because XMLRPC::Serializer doesn't return
 # a true value.
 use XMLRPC::Lite;
@@ -161,7 +166,10 @@ sub _validation_subs {
 1;
 
 package Bugzilla::XMLRPC::SOM;
+
+use 5.10.1;
 use strict;
+
 use XMLRPC::Lite;
 our @ISA = qw(XMLRPC::SOM);
 use Bugzilla::WebService::Util qw(taint_data);
@@ -184,8 +192,11 @@ sub paramsin {
 # This package exists to fix a UTF-8 bug in SOAP::Lite.
 # See http://rt.cpan.org/Public/Bug/Display.html?id=32952.
 package Bugzilla::XMLRPC::Serializer;
-use Scalar::Util qw(blessed);
+
+use 5.10.1;
 use strict;
+
+use Scalar::Util qw(blessed);
 # We can't use "use base" because XMLRPC::Serializer doesn't return
 # a true value.
 use XMLRPC::Lite;
index 05bbf90ca3a3022861cf0dc16c083d22526dd6fa..ee1442d72549c4f55d4b1bd618549f33025f6c9b 100644 (file)
@@ -7,10 +7,11 @@
 
 package Bugzilla::WebService::User;
 
+use 5.10.1;
 use strict;
+
 use base qw(Bugzilla::WebService);
 
-use Bugzilla;
 use Bugzilla::Constants;
 use Bugzilla::Error;
 use Bugzilla::Group;
index 83b9250156951cca6bac8e83a3dc5acaa6301b4b..0c206e0307d19b6b2b0709605d9809c1b8e4e3c7 100644 (file)
@@ -6,7 +6,10 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::WebService::Util;
+
+use 5.10.1;
 use strict;
+
 use base qw(Exporter);
 
 # We have to "require", not "use" this, because otherwise it tries to
index 3796198225204ddd0ae8d63e9398569000a2775f..fba6e714ab08a059b2e25bb4f40225ce13d52053 100644 (file)
@@ -5,10 +5,11 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-use strict;
-
 package Bugzilla::Whine;
 
+use 5.10.1;
+use strict;
+
 use base qw(Bugzilla::Object);
 
 use Bugzilla::Constants;
index e52cad66ea9eb6344e8d9f48e011caa178f5885b..3c63e80571cb9d1476894f1cb0b8ae19126c32ac 100644 (file)
@@ -7,6 +7,7 @@
 
 package Bugzilla::Whine::Query;
 
+use 5.10.1;
 use strict;
 
 use base qw(Bugzilla::Object);
index 102b5d825f8a8632989c8e5b450c99eb816b8de3..a96c728f239cc6ec182ad19ab9d91eb5f2f3203d 100644 (file)
@@ -5,10 +5,11 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-use strict;
-
 package Bugzilla::Whine::Schedule;
 
+use 5.10.1;
+use strict;
+
 use base qw(Bugzilla::Object);
 
 use Bugzilla::Constants;
index 273ec8e892504dcfea87d96927794e21db2cbea9..0767b07a391129b530ce766d0a5ace597fbf9896 100755 (executable)
--- a/admin.cgi
+++ b/admin.cgi
@@ -6,8 +6,8 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
-
 use lib qw(. lib);
 
 use Bugzilla;
index e696c95a765a9fa28dab8692589fbf24fd0ea9c1..775a91f00008a843aeaea374492d2bcd716ad8d1 100755 (executable)
@@ -6,13 +6,8 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-################################################################################
-# Script Initialization
-################################################################################
-
-# Make it harder for us to do dangerous things in Perl.
+use 5.10.1;
 use strict;
-
 use lib qw(. lib);
 
 use Bugzilla;
@@ -24,11 +19,9 @@ use Bugzilla::FlagType;
 use Bugzilla::User;
 use Bugzilla::Util;
 use Bugzilla::Bug;
-use Bugzilla::Field;
 use Bugzilla::Attachment;
 use Bugzilla::Attachment::PatchReader;
 use Bugzilla::Token;
-use Bugzilla::Keyword;
 
 use Encode qw(encode find_encoding);
 
@@ -40,10 +33,6 @@ local our $cgi = Bugzilla->cgi;
 local our $template = Bugzilla->template;
 local our $vars = {};
 
-################################################################################
-# Main Body Execution
-################################################################################
-
 # All calls to this script should contain an "action" variable whose
 # value determines what the user wants to do.  The code below checks
 # the value of that variable and runs the appropriate code. If none is
index 8185491d9214184cca318482dd07cf1e66b6fc7e..057caa935e05a112f5a7503fac5c2ea909838ba1 100755 (executable)
@@ -6,13 +6,8 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-################################################################################
-# Script Initialization
-################################################################################
-
-# Make it harder for us to do dangerous things in Perl.
+use 5.10.1;
 use strict;
-
 use lib qw(. lib);
 
 use Bugzilla;
index 0fa073e5819beedaae4cde02c55ffafb505b87bd..5f4573fd04ab263376da375faefbee746b0ebaaf 100755 (executable)
--- a/chart.cgi
+++ b/chart.cgi
@@ -27,6 +27,7 @@
 # Bonus:
 # Offer subscription when you get a "series already exists" error?
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
 
@@ -37,7 +38,6 @@ use Bugzilla::Error;
 use Bugzilla::Util;
 use Bugzilla::Chart;
 use Bugzilla::Series;
-use Bugzilla::User;
 use Bugzilla::Token;
 
 # For most scripts we don't make $cgi and $template global variables. But
index 835a8ef347c5019cae04756179c9ec25056d35cc..0aa6c7cbafd980ecce13de1253c550d6cfe8f07e 100755 (executable)
@@ -6,6 +6,7 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
 
@@ -15,7 +16,6 @@ use Bugzilla::Util;
 use Bugzilla::CGI;
 use Bugzilla::Search::Saved;
 use Bugzilla::Error;
-use Bugzilla::User;
 use Bugzilla::Token;
 
 use Storable qw(dclone);
index c1ad338f5c4704b355cae27aa18b6bf5128eb143..7336714bb8e88131d8fe6457a5141930cb664136 100755 (executable)
@@ -6,6 +6,7 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
 
index 7dc2e3afb3f5239f627c978898f652688f25b47a..c4f64a007ce4d376ff7579f4b2f936aea0ac0911 100755 (executable)
@@ -6,13 +6,8 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-################################################################################
-# Script Initialization
-################################################################################
-
-# Make it harder for us to do dangerous things in Perl.
+use 5.10.1;
 use strict;
-
 use lib qw(. lib);
 
 use Bugzilla;
index 6bfc07e2a373219a9eca6f51f1faf54dd9326d57..fbae60de4a3f09a4c57b012f50a5c8e5cb76bfd0 100644 (file)
@@ -4,6 +4,7 @@
 
 package Bugzilla;
 
+use 5.10.1;
 use strict;
 
 #######################################################################
index e3b83205bb281e306afdebff89f50364f2d6062e..e2dbbf62fa25a7830290eaaf85817bac9ee095e7 100755 (executable)
@@ -6,8 +6,8 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
-
 use lib qw(. lib);
 
 use Bugzilla;
index 3a70f29bb0908e8ab6566164a80cf894d9730cd9..8544346af50f85ef20dd6949f21b6eb5da9f896e 100755 (executable)
@@ -6,6 +6,7 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
 
index b67b9c3d9eaf4d08694fd99a09affdd88e3a3f0e..ef0634960206d8359f58bc6d391e8eb2762932d1 100755 (executable)
@@ -6,12 +6,12 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Error;
-use Bugzilla::User;
 use Bugzilla::Keyword;
 
 my $user = Bugzilla->login();
index cc607be7c7fab8086464db73229ace82f64b8126..4a15176711eb99fe79df918a994344d1f9a66e2d 100644 (file)
@@ -7,7 +7,9 @@
 
 package Pod::Simple::HTML::Bugzilla;
 
+use 5.10.1;
 use strict;
+
 use base qw(Pod::Simple::HTML);
 
 # Without this constant, HTMLBatch will throw undef warnings.
index 366ceb7a0084f161fa10ee84686260ec04a97da4..52a09910fab49cf21359524420206d7230b8d19e 100644 (file)
@@ -7,7 +7,9 @@
 
 package Pod::Simple::HTMLBatch::Bugzilla;
 
+use 5.10.1;
 use strict;
+
 use base qw(Pod::Simple::HTMLBatch);
 
 # This is the same hack that HTMLBatch does to "import" this subroutine.
index 4bf1fb4a0a98ff6a8c82f3aaa84d5588304b4ffa..ea08d8258c0eb75606dae7c999ee42c8f50c75a6 100755 (executable)
@@ -8,7 +8,9 @@
 
 # This script compiles all the documentation.
 
+use 5.10.1;
 use strict;
+
 use Cwd;
 
 # We need to be in this directory to use our libraries.
@@ -87,8 +89,8 @@ sub MakeDocs {
 
     my ($name, $cmdline) = @_;
 
-    print "Creating $name documentation ...\n" if defined $name;
-    print "$cmdline\n\n";
+    say "Creating $name documentation ..." if defined $name;
+    say "$cmdline\n";
     system $cmdline;
     print "\n";
 
@@ -96,7 +98,7 @@ sub MakeDocs {
 
 sub make_pod {
 
-    print "Creating API documentation...\n";
+    say "Creating API documentation...";
 
     my $converter = Pod::Simple::HTMLBatch::Bugzilla->new;
     # Don't output progress information.
index 01962218bd9d1b01ef9ed616d5dd1e80a4eb7280..d501b0e16acdf9f65c04bbfb7b015f655d7daefd 100755 (executable)
@@ -6,6 +6,7 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
 
index 3a2647af6918616d6c1fdff3a259541961343754..3d93057b910e345416852a516bea625818f4a089 100755 (executable)
@@ -7,6 +7,7 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
 
index 7ff1dae811a12b5cd15a1109459b32a56ed11e6b..12a449fd459508f209ba109f08bf3fa9b6a6fdb4 100755 (executable)
@@ -6,6 +6,7 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
 
index 5d9e053670d4609bb1f29b49ccdcf2d0e636ec64..5ac9dcccec3e983b7a7b7f5ec608af9cd1796412 100755 (executable)
@@ -6,6 +6,7 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
 
index e9c430d7dc7656467075c103db1c37563291adbb..c52bab7173deb194ee9af7947450efa08064ac16 100755 (executable)
@@ -6,15 +6,10 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-################################################################################
-# Script Initialization
-################################################################################
-
-# Make it harder for us to do dangerous things in Perl.
+use 5.10.1;
 use strict;
 use lib qw(. lib);
 
-# Use Bugzilla's flag modules for handling flag types.
 use Bugzilla;
 use Bugzilla::Constants;
 use Bugzilla::Flag;
index d603ab18345c6ec3b66e277c50aa546a22247946..87c44f03c5fbcd2bcd77a177a6a2bdb9650fca1e 100755 (executable)
@@ -6,6 +6,7 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
 
index cbaa308fb390a60400cf51c8ce7dbd3fa2d2291c..7e14f80cdc901e356d3dd58e28ae4b46c3a70c5c 100755 (executable)
@@ -6,6 +6,7 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
 
index 93152cd50a046c3d40b6a584b29843fbe1df413c..3eeb300ab3a0613589fc6fd15f62e846c87dde15 100755 (executable)
@@ -6,6 +6,7 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
 
index b522fd41401298c311b05fa326cfcf4f626cc756..3486d70612fa56150464de65aa0033beee83a473 100755 (executable)
@@ -6,6 +6,7 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
 
index b4f1649952146d473ed6c6a81cbe254ff4f8f4d4..137f1428550a58189d7b68b7bc3e6a721deb169f 100755 (executable)
@@ -6,6 +6,7 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
 
index 17740cd5c13eb8042923f4450b5ee7bebe5782d5..bf5e2025b2d771da2c64a7b93ee6bb429b7aec5e 100755 (executable)
@@ -6,6 +6,7 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
 
index e2675921bdc0c1689ff471df2f8f9ad76b8bba33..30a747ded2a4e96da67752dc8dd516414705bdd2 100755 (executable)
@@ -6,6 +6,7 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
 
index 60c39c9ea5946399c955a9f4c8bf099d88923024..61fe2472340b2e93d7347794087c31e53c9fa08f 100755 (executable)
@@ -10,6 +10,7 @@
 # or select boxes. It is largely a copy of editmilestones.cgi, but 
 # with some cleanup.
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
 
index 4951c272abb2b727f75a227e59922f91711459da..1d056c67b90d8c6cc9bb13f66246af1adc0ced03 100755 (executable)
@@ -6,6 +6,7 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
 
index 5227f1d62dc74a53183e8a4c8aa8af09a29ea241..e93e552d97c6b34e27e74d1252f1ca6026a6ab28 100755 (executable)
@@ -10,8 +10,8 @@
 # Script Initialization
 ################################################################################
 
+use 5.10.1;
 use strict;
-
 use lib qw(. lib);
 
 use Bugzilla;
index 36b8ab8f9b591ba6c912cdbb27279b4e4a233ef4..68cd984586cd3796db3b4da0a37c69722ba169c5 100755 (executable)
@@ -6,8 +6,8 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
-
 use lib qw(. lib);
 
 use Bugzilla;
index 6be7be8cff503444e827bace2f7fbcda95d6157b..183833008b7c0d9269963dff600aa051dcaab416 100755 (executable)
@@ -6,6 +6,7 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use warnings;
 
index 7a8cebf43c5c94f3ce76427f13aabf7711bc9b2c..a4dde21ba0449365790089dafa070c5730ee8a53 100755 (executable)
@@ -16,8 +16,8 @@
 #
 ##############################################################################
 
+use 5.10.1;
 use strict;
-
 use lib qw(. lib);
 
 use Bugzilla;
index 5f1b884d250ff79a48070303a7de8d27703f43ed..c48f60df82155a5b76f4d49429ee1c99be44bed0 100755 (executable)
@@ -6,8 +6,10 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
+
 use Bugzilla;
 use Bugzilla::Constants;
 use Bugzilla::Error;
@@ -54,7 +56,7 @@ foreach my $template_file (keys %create_files) {
    close($fh);
 }
 
-print get_text('extension_created', $vars), "\n";
+say get_text('extension_created', $vars);
 
 __END__
 
index f34317d5aebd292d344b6776876e5bbc3460b843..1105e251723cda3c5bb3111bde4f7c8327fd6b09 100755 (executable)
@@ -10,6 +10,7 @@
 # a new bug into bugzilla. Everything before the beginning <?xml line
 # is removed so you can pipe in email messages.
 
+use 5.10.1;
 use strict;
 
 #####################################################################
index 68352c0841b9a39ea8d2d957f003667f11b46b9a..096d48d41d36d482da67054e3b1f588a478a643f 100755 (executable)
--- a/index.cgi
+++ b/index.cgi
@@ -6,14 +6,8 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-###############################################################################
-# Script Initialization
-###############################################################################
-
-# Make it harder for us to do dangerous things in Perl.
+use 5.10.1;
 use strict;
-
-# Include the Bugzilla CGI and general utility library.
 use lib qw(. lib);
 
 use Bugzilla;
@@ -37,10 +31,6 @@ if ($cgi->param('logout')) {
     $cgi->delete('logout');
 }
 
-###############################################################################
-# Main Body Execution
-###############################################################################
-
 # Return the appropriate HTTP response headers.
 print $cgi->header();
 
index 4663777599c137d29fb5167da3f8889053fcadd7..37ea8cc41097ee46a75b22ac64ef7ff24888efc3 100755 (executable)
@@ -6,6 +6,7 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use warnings;
 
index 1b956917e088f8a53b4b34699959b793fe3c4a55..6ba288d2ec67dcf0e957d6a221df3ed204ee91cb 100755 (executable)
@@ -6,6 +6,7 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 
 use Cwd qw(abs_path);
index 0d275f83cba1310de015289761c07a40a153a39e..6a60c9d3ee0e68f41c5ac2eea1bb684ead752930 100755 (executable)
@@ -6,6 +6,7 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
 
index de4265b0bee1bccce3b4d2e300b72325082a2682..0ce85fa154ee601d02a5589e5a8d0579e12d00d5 100755 (executable)
@@ -6,6 +6,7 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use File::Basename;
 BEGIN { chdir dirname($0); }
index ac6956b1b9021bf4fd5df95f343c2824d2106e1d..81aae301edb1d276dcae649f091a15f0e6684bc3 100644 (file)
@@ -7,6 +7,8 @@
 # defined by the Mozilla Public License, v. 2.0.
 
 package Bugzilla::ModPerl;
+
+use 5.10.1;
 use strict;
 use warnings;
 
@@ -107,7 +109,10 @@ foreach my $file (glob "$cgi_path/*.cgi") {
 }
 
 package Bugzilla::ModPerl::ResponseHandler;
+
+use 5.10.1;
 use strict;
+
 use base qw(ModPerl::Registry);
 use Bugzilla;
 
@@ -132,7 +137,10 @@ sub handler : method {
 
 
 package Bugzilla::ModPerl::CleanupHandler;
+
+use 5.10.1;
 use strict;
+
 use Apache2::Const -compile => qw(OK);
 
 sub handler {
index e5192ab502665a40c280f65197373b3b19a9dd8f..be0dcd7ff3aabcdb104eef379ef26e93b1f1d159 100755 (executable)
--- a/page.cgi
+++ b/page.cgi
@@ -13,8 +13,8 @@
 # a content-type, e.g. html.
 ###############################################################################
 
+use 5.10.1;
 use strict;
-
 use lib qw(. lib);
 
 use Bugzilla;
index b1504923442fdb3ad81c3e49575b051f80c2bf1f..b38707365e6f59d7f282a927251e7f805c55601d 100755 (executable)
@@ -6,6 +6,7 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
 
@@ -17,11 +18,7 @@ use Bugzilla::Util;
 use Bugzilla::Error;
 use Bugzilla::Bug;
 use Bugzilla::User;
-use Bugzilla::Field;
 use Bugzilla::Hook;
-use Bugzilla::Product;
-use Bugzilla::Component;
-use Bugzilla::Keyword;
 use Bugzilla::Token;
 use Bugzilla::Flag;
 
index 29cc54e9f2a0459cf841bb86c3aac4d4a4f87adb..d9ae9c109ce516a89a430488f15754562c7b427f 100755 (executable)
@@ -18,8 +18,8 @@
 # 3) If we are processing just the one id, then it is stored in @idlist for
 # later processing.
 
+use 5.10.1;
 use strict;
-
 use lib qw(. lib);
 
 use Bugzilla;
index df3d9cadf53d025e8d1aa859cb52149ccf8cc556..29e278c6d5ac6a42dee46daa33e4843226eda654 100755 (executable)
--- a/query.cgi
+++ b/query.cgi
@@ -6,6 +6,7 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
 
index 266ed516f43020ce2f6e9710ae998e234b5d0448..4ed40a5479571f3d1d8b9383288056fd33e49d82 100755 (executable)
--- a/quips.cgi
+++ b/quips.cgi
@@ -6,8 +6,8 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
-
 use lib qw(. lib);
 
 use Bugzilla;
index 57240db43d3d687298149a87ed42e5a5e8041423..e2effd1058bc9534ae6e944a0c3675eca8aa89f0 100755 (executable)
@@ -6,6 +6,7 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
 
index 0241f42b544ef250793839ff9722f074e02ee98c..a5d170825e264b37149ba764ce6c493e967352db 100755 (executable)
@@ -6,6 +6,7 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
 
index 66f4b05d7527ca069d175d4d89236c43d9b502a8..c8c319f41b0504c3071114cf6bcca803ebc6c1cf 100755 (executable)
@@ -6,8 +6,8 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
-
 use lib qw(. lib);
 
 use Bugzilla;
index 3bae8c094ab6465d1c79c14bde36cc670cecb7a8..17e6c926d7725d40fb8c95a6e5042bd41a4dd54f 100755 (executable)
@@ -6,13 +6,8 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-################################################################################
-# Script Initialization
-################################################################################
-
-# Make it harder for us to do dangerous things in Perl.
+use 5.10.1;
 use strict;
-
 use lib qw(. lib);
 
 use Bugzilla;
@@ -34,10 +29,6 @@ my $action = $cgi->param('action') || '';
 
 print $cgi->header();
 
-################################################################################
-# Main Body Execution
-################################################################################
-
 my $fields;
 $fields->{'requester'}->{'type'} = 'single';
 # If the user doesn't restrict his search to requests from the wind
index 09963e84e62873c51760121808dbaa5002a133bd..6a6450007998abcdf36dc6ba0e4c2d8f8ad4dda2 100755 (executable)
@@ -6,7 +6,7 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
-# Make it harder for us to do dangerous things in Perl.
+use 5.10.1;
 use diagnostics;
 use strict;
 use lib qw(lib);
index 3a869ef9fa372c3afb991d1daa2b9fd3157ece3d..ad5925d064b4a4820f09976e16239b905f5c16a6 100755 (executable)
@@ -6,8 +6,8 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
-
 use lib qw(. lib);
 
 use Bugzilla;
index a360bf8c0b9d7c8ca9751158637e13152b1bed11..819c661528d35d3ba5b597be8b47050058ceb15d 100755 (executable)
@@ -6,8 +6,8 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
-
 use lib qw(. lib);
 
 use Bugzilla;
index 3809159c723d5bef16751137c43fe411743ff920..e9b281ec2da4e749d49372992ca3befd63a97dba 100755 (executable)
@@ -6,6 +6,7 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
 
index d161382f78e5c2e6ef5123e4fbfed4bdbb220ff3..31181a63b569cd030cd2541b8956d5d3bfe24edf 100755 (executable)
@@ -6,8 +6,8 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
-
 use lib qw(. lib);
 
 use Bugzilla;
index 48d75512b949a1164c267434ea9728b1c3831b07..e5ae4bfd05b9eccdc89dbc0913fb94acaf31c5b9 100755 (executable)
@@ -6,8 +6,8 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
-
 use lib qw(. lib);
 
 use Bugzilla;
index 842e12f2a9bd74395aa3adc504000e29864e799b..ff0602d46c3035d1442beaaa24ad289d938cf3d6 100755 (executable)
@@ -6,8 +6,8 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
-
 use lib qw(. lib);
 
 use File::Temp;
index f8844b702ae80a47aa1718520fb3781f527d1f97..4031ed26375ab65598cdc81206860b6781cb3840 100755 (executable)
@@ -6,8 +6,8 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
-
 use lib qw(. lib);
 
 use Bugzilla;
index fa13a5162e97094552b99c14f197208672c7222b..e06d3257d346778aa5f6d262b71b089aa53f2649 100755 (executable)
@@ -6,8 +6,8 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
-
 use lib qw(. lib);
 
 use Date::Parse;         # strptime
index e691b39ddf0a1c5f9e5f8fd17acdfa2bf8be7753..4826c7712bbaad565ca52fd99437ddc29c077e4f 100644 (file)
@@ -16,7 +16,7 @@ use lib 't';
 
 use Support::Files;
 
-use Test::More tests => (scalar(@Support::Files::testitems) * 3);
+use Test::More tests => (scalar(@Support::Files::testitems) * 4);
 
 my @testitems = @Support::Files::testitems; # get the files to test.
 
@@ -84,6 +84,28 @@ foreach my $file (@testitems) {
     }
 }
 
+foreach my $file (@testitems) {
+    my $found_use_feature = 0;
+    $file =~ s/\s.*$//; # nuke everything after the first space (#comment)
+    next if (!$file); # skip null entries
+    if (! open (FILE, $file)) {
+        ok(0,"could not open $file --WARNING");
+        next;
+    }
+    while (my $file_line = <FILE>) {
+        if ($file_line =~ m/^\s*use 5.10.1/) {
+            $found_use_feature = 1;
+            last;
+        }
+    }
+    close (FILE);
+    if ($found_use_feature) {
+        ok(1,"$file requires Perl 5.10.1");
+    } else {
+        ok(0,"$file DOES NOT require Perl 5.10.1 --WARNING");
+    }
+}
+
 # Check to see that all error messages use tags (for l10n reasons.)
 foreach my $file (@testitems) {
     $file =~ s/\s.*$//; # nuke everything after the first space (#comment)
index 3480f877e84f690b6be17e312c7ac79541bfb901..c3220cab52b985465bf8aa1aa928b98383460f31 100755 (executable)
@@ -10,7 +10,9 @@
 # are being run instead of shown. This script does not rely on database access
 # or correct params.
 
+use 5.10.1;
 use strict;
-print "content-type:text/plain\n\n";
-print "OK " . ($::ENV{MOD_PERL} || "mod_cgi") . "\n";
+
+say "content-type:text/plain\n";
+say "OK " . ($::ENV{MOD_PERL} || "mod_cgi");
 exit;
index 488524792c2db0b2934ba1bf700acb83dcb4c510..3eb25a13bdf071ef31e2709e8b840de92411082e 100755 (executable)
 # as its only argument.  It attempts to troubleshoot as many installation
 # issues as possible.
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
 
 use Bugzilla;
 use Bugzilla::Constants;
-use Bugzilla::Util qw(say);
 
 use Socket;
 
index 62f1f51210aa5dd1b0c037f1f208d1c1418261d0..c1630ec91ff500b6f1a002656b2ae066c6d4b2a9 100755 (executable)
--- a/token.cgi
+++ b/token.cgi
@@ -6,6 +6,7 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
 
index 1b63474568ade42eaf80fff151e49a584519ef5d..a80184d51f9a6a3e02bb172f136f7981a1ff2468 100755 (executable)
@@ -6,8 +6,8 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
-
 use lib qw(. lib);
 
 use Bugzilla;
index 609ec332a0ad888995211df95dc3787b8512909a..032dc1b8ae0ae62eb19f743102a315c1ba48221a 100755 (executable)
--- a/votes.cgi
+++ b/votes.cgi
@@ -9,8 +9,10 @@
 # This script remains as a backwards-compatibility URL for before
 # the time that Voting was an extension.
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
+
 use Bugzilla;
 use Bugzilla::Error;
 
index 7dca2620b8c34a9a12382eb989a52917ad3e9404..cb52029c082d0fc0e2ec665cd8ad2c3c681c630a 100755 (executable)
--- a/whine.pl
+++ b/whine.pl
@@ -10,8 +10,8 @@
 # Script Initialization
 ################################################################################
 
+use 5.10.1;
 use strict;
-
 use lib qw(. lib);
 
 use Bugzilla;
index 4a5c967c6a3f283fac3a268b306ce0f757991d18..c8138116208e7d2436969c1fa030487dd2458559 100755 (executable)
@@ -14,6 +14,7 @@
 # param. (We have NEW and REOPENED in there to keep compatibility with old
 # Bugzillas.)
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);
 
index 8bf9f9f1e0a3bbcb01fadf1132746ef94b1c6597..a8092b25d185dfa8224aa0314663235470f384a7 100755 (executable)
@@ -6,6 +6,7 @@
 # This Source Code Form is "Incompatible With Secondary Licenses", as
 # defined by the Mozilla Public License, v. 2.0.
 
+use 5.10.1;
 use strict;
 use lib qw(. lib);