diff --git a/lib/CharmBoard.pm b/lib/CharmBoard.pm index dac37aa..8fcd596 100644 --- a/lib/CharmBoard.pm +++ b/lib/CharmBoard.pm @@ -4,7 +4,8 @@ use utf8; use strict; use warnings; use experimental qw(try); -use feature ':5.20'; +no warnings 'experimental::try'; +use feature ':5.34'; use Mojo::Base 'Mojolicious', -signatures; use CharmBoard::Model::Schema; diff --git a/lib/CharmBoard/Controller/Index.pm b/lib/CharmBoard/Controller/Index.pm index 9db6b26..44d803d 100644 --- a/lib/CharmBoard/Controller/Index.pm +++ b/lib/CharmBoard/Controller/Index.pm @@ -4,7 +4,8 @@ use utf8; use strict; use warnings; use experimental qw(try); -use feature ':5.20'; +no warnings 'experimental::try'; +use feature ':5.34'; use Mojo::Base 'Mojolicious::Controller', -signatures; use Tree::Simple; diff --git a/lib/CharmBoard/Controller/Login.pm b/lib/CharmBoard/Controller/Login.pm index 906229c..97cbc1a 100644 --- a/lib/CharmBoard/Controller/Login.pm +++ b/lib/CharmBoard/Controller/Login.pm @@ -4,7 +4,8 @@ use utf8; use strict; use warnings; use experimental qw(try); -use feature ':5.20'; +no warnings 'experimental::try'; +use feature ':5.34'; use Mojo::Base 'Mojolicious::Controller', -signatures; use CharmBoard::Util::Crypt::Password; diff --git a/lib/CharmBoard/Controller/Logout.pm b/lib/CharmBoard/Controller/Logout.pm index 6aaf9d8..b54e49f 100644 --- a/lib/CharmBoard/Controller/Logout.pm +++ b/lib/CharmBoard/Controller/Logout.pm @@ -4,7 +4,8 @@ use utf8; use strict; use warnings; use experimental qw(try); -use feature ':5.20'; +no warnings 'experimental::try'; +use feature ':5.34'; use Mojo::Base 'Mojolicious::Controller', -signatures; diff --git a/lib/CharmBoard/Controller/NewThread.pm b/lib/CharmBoard/Controller/NewThread.pm index e42baea..7bd51ba 100644 --- a/lib/CharmBoard/Controller/NewThread.pm +++ b/lib/CharmBoard/Controller/NewThread.pm @@ -4,7 +4,8 @@ use utf8; use strict; use warnings; use experimental qw(try); -use feature ':5.20'; +no warnings 'experimental::try'; +use feature ':5.34'; use Mojo::Base 'Mojolicious::Controller', -signatures; diff --git a/lib/CharmBoard/Controller/Register.pm b/lib/CharmBoard/Controller/Register.pm index 86582f6..daa0f91 100644 --- a/lib/CharmBoard/Controller/Register.pm +++ b/lib/CharmBoard/Controller/Register.pm @@ -4,7 +4,8 @@ use utf8; use strict; use warnings; use experimental qw(try); -use feature ':5.20'; +no warnings 'experimental::try'; +use feature ':5.34'; use Mojo::Base 'Mojolicious::Controller', -signatures; use CharmBoard::Util::Crypt::Password; diff --git a/lib/CharmBoard/Controller/ViewSubf.pm b/lib/CharmBoard/Controller/ViewSubf.pm index a17ef28..5b6b643 100644 --- a/lib/CharmBoard/Controller/ViewSubf.pm +++ b/lib/CharmBoard/Controller/ViewSubf.pm @@ -4,7 +4,8 @@ use utf8; use strict; use warnings; use experimental qw(try); -use feature ':5.20'; +no warnings 'experimental::try'; +use feature ':5.34'; use Mojo::Base 'Mojolicious::Controller', -signatures; diff --git a/lib/CharmBoard/Model/Forums.pm b/lib/CharmBoard/Model/Forums.pm index 3124475..b91dc3f 100644 --- a/lib/CharmBoard/Model/Forums.pm +++ b/lib/CharmBoard/Model/Forums.pm @@ -4,7 +4,8 @@ use utf8; use strict; use warnings; use experimental qw(try); -use feature ':5.20'; +no warnings 'experimental::try'; +use feature ':5.34'; use Mojo::Base 'MojoX::Model'; use Tree::Simple; diff --git a/lib/CharmBoard/Model/Schema.pm b/lib/CharmBoard/Model/Schema.pm index a7f3ff0..14e656e 100644 --- a/lib/CharmBoard/Model/Schema.pm +++ b/lib/CharmBoard/Model/Schema.pm @@ -4,7 +4,8 @@ use utf8; use strict; use warnings; use experimental qw(try); -use feature ':5.20'; +no warnings 'experimental::try'; +use feature ':5.34'; use base qw(DBIx::Class::Schema); diff --git a/lib/CharmBoard/Model/Schema/Set/Categories.pm b/lib/CharmBoard/Model/Schema/Set/Categories.pm index a04d810..2838f67 100644 --- a/lib/CharmBoard/Model/Schema/Set/Categories.pm +++ b/lib/CharmBoard/Model/Schema/Set/Categories.pm @@ -4,7 +4,8 @@ use utf8; use strict; use warnings; use experimental qw(try); -use feature ':5.20'; +no warnings 'experimental::try'; +use feature ':5.34'; use base 'DBIx::Class::ResultSet'; diff --git a/lib/CharmBoard/Model/Schema/Set/Session.pm b/lib/CharmBoard/Model/Schema/Set/Session.pm index 956b5ec..ad546a2 100644 --- a/lib/CharmBoard/Model/Schema/Set/Session.pm +++ b/lib/CharmBoard/Model/Schema/Set/Session.pm @@ -4,7 +4,8 @@ use utf8; use strict; use warnings; use experimental qw(try); -use feature ':5.20'; +no warnings 'experimental::try'; +use feature ':5.34'; use base 'DBIx::Class::ResultSet'; diff --git a/lib/CharmBoard/Model/Schema/Set/Subforums.pm b/lib/CharmBoard/Model/Schema/Set/Subforums.pm index a222888..ea0dfee 100644 --- a/lib/CharmBoard/Model/Schema/Set/Subforums.pm +++ b/lib/CharmBoard/Model/Schema/Set/Subforums.pm @@ -4,7 +4,8 @@ use utf8; use strict; use warnings; use experimental qw(try); -use feature ':5.20'; +no warnings 'experimental::try'; +use feature ':5.34'; use base 'DBIx::Class::ResultSet'; diff --git a/lib/CharmBoard/Model/Schema/Set/Threads.pm b/lib/CharmBoard/Model/Schema/Set/Threads.pm index 10a5a35..70eaf48 100644 --- a/lib/CharmBoard/Model/Schema/Set/Threads.pm +++ b/lib/CharmBoard/Model/Schema/Set/Threads.pm @@ -4,7 +4,8 @@ use utf8; use strict; use warnings; use experimental qw(try); -use feature ':5.20'; +no warnings 'experimental::try'; +use feature ':5.34'; use base 'DBIx::Class::ResultSet'; diff --git a/lib/CharmBoard/Model/Schema/Source/Categories.pm b/lib/CharmBoard/Model/Schema/Source/Categories.pm index 07432cd..8833000 100644 --- a/lib/CharmBoard/Model/Schema/Source/Categories.pm +++ b/lib/CharmBoard/Model/Schema/Source/Categories.pm @@ -4,7 +4,8 @@ use utf8; use strict; use warnings; use experimental qw(try); -use feature ':5.20'; +no warnings 'experimental::try'; +use feature ':5.34'; use base qw(DBIx::Class::Core); diff --git a/lib/CharmBoard/Model/Schema/Source/Posts.pm b/lib/CharmBoard/Model/Schema/Source/Posts.pm index 02c42ca..e4308f5 100644 --- a/lib/CharmBoard/Model/Schema/Source/Posts.pm +++ b/lib/CharmBoard/Model/Schema/Source/Posts.pm @@ -4,7 +4,8 @@ use utf8; use strict; use warnings; use experimental qw(try); -use feature ':5.20'; +no warnings 'experimental::try'; +use feature ':5.34'; use base qw(DBIx::Class::Core); diff --git a/lib/CharmBoard/Model/Schema/Source/Session.pm b/lib/CharmBoard/Model/Schema/Source/Session.pm index 2ba578a..667c419 100644 --- a/lib/CharmBoard/Model/Schema/Source/Session.pm +++ b/lib/CharmBoard/Model/Schema/Source/Session.pm @@ -4,7 +4,8 @@ use utf8; use strict; use warnings; use experimental qw(try); -use feature ':5.20'; +no warnings 'experimental::try'; +use feature ':5.34'; use base qw(DBIx::Class::Core); diff --git a/lib/CharmBoard/Model/Schema/Source/Subforums.pm b/lib/CharmBoard/Model/Schema/Source/Subforums.pm index 4453f6d..a6ec28b 100644 --- a/lib/CharmBoard/Model/Schema/Source/Subforums.pm +++ b/lib/CharmBoard/Model/Schema/Source/Subforums.pm @@ -4,7 +4,8 @@ use utf8; use strict; use warnings; use experimental qw(try); -use feature ':5.20'; +no warnings 'experimental::try'; +use feature ':5.34'; use base qw(DBIx::Class::Core); diff --git a/lib/CharmBoard/Model/Schema/Source/Threads.pm b/lib/CharmBoard/Model/Schema/Source/Threads.pm index 18fc353..debf29c 100644 --- a/lib/CharmBoard/Model/Schema/Source/Threads.pm +++ b/lib/CharmBoard/Model/Schema/Source/Threads.pm @@ -4,7 +4,8 @@ use utf8; use strict; use warnings; use experimental qw(try); -use feature ':5.20'; +no warnings 'experimental::try'; +use feature ':5.34'; use base qw(DBIx::Class::Core); diff --git a/lib/CharmBoard/Model/Schema/Source/Users.pm b/lib/CharmBoard/Model/Schema/Source/Users.pm index efb0db8..afe62bb 100644 --- a/lib/CharmBoard/Model/Schema/Source/Users.pm +++ b/lib/CharmBoard/Model/Schema/Source/Users.pm @@ -4,7 +4,8 @@ use utf8; use strict; use warnings; use experimental qw(try); -use feature ':5.20'; +no warnings 'experimental::try'; +use feature ':5.34'; use base qw(DBIx::Class::Core); diff --git a/lib/CharmBoard/Util/Crypt/Password.pm b/lib/CharmBoard/Util/Crypt/Password.pm index dc5b3b8..680c017 100644 --- a/lib/CharmBoard/Util/Crypt/Password.pm +++ b/lib/CharmBoard/Util/Crypt/Password.pm @@ -4,7 +4,8 @@ use utf8; use strict; use warnings; use experimental qw(try); -use feature ':5.20'; +no warnings 'experimental::try'; +use feature ':5.34'; use Authen::Passphrase::Argon2; use CharmBoard::Util::Crypt::Seasoning; diff --git a/lib/CharmBoard/Util/Crypt/Seasoning.pm b/lib/CharmBoard/Util/Crypt/Seasoning.pm index c344535..06b92aa 100644 --- a/lib/CharmBoard/Util/Crypt/Seasoning.pm +++ b/lib/CharmBoard/Util/Crypt/Seasoning.pm @@ -4,7 +4,8 @@ use utf8; use strict; use warnings; use experimental qw(try); -use feature ':5.20'; +no warnings 'experimental::try'; +use feature ':5.34'; use Math::Random::Secure qw(irand); diff --git a/script/CharmBoard b/script/CharmBoard index 62347e8..242b2a4 100755 --- a/script/CharmBoard +++ b/script/CharmBoard @@ -4,7 +4,8 @@ use utf8; use strict; use warnings; use experimental qw(try); -use feature ':5.20'; +no warnings 'experimental::try'; +use feature ':5.34'; use Mojo::File qw(curfile); use lib curfile->dirname->sibling('lib')->to_string;