3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-25 20:22:37 +01:00
pbot/lib/PBot/Imports.pm
Pragmatic Software c62b4d1c35
Imports: disable deprecation warnings
I will be monitoring deprecations and will update PBot as necessary.
2024-03-15 02:48:17 -07:00

41 lines
847 B
Perl

# File: Imports.pm
#
# Purpose: Boilerplate imports for PBot packages.
# SPDX-FileCopyrightText: 2021 Pragmatic Software <pragma78@gmail.com>
# SPDX-License-Identifier: MIT
package PBot::Imports;
use Import::Into;
sub import {
my $target = caller;
# use strict
strict->import::into($target);
# use warnings
warnings->import::into($target);
# use feature ':5.20'
feature->import::into($target, ':5.20');
# use utf8
utf8->import::into($target);
# use signatures
feature->import::into($target, 'signatures');
# no warnings => 'experimental';
warnings->unimport::out_of($target, 'experimental');
# no warnings => 'deprecated';
# note: I will be monitoring deprecations and will update PBot accordingly
warnings->unimport::out_of($target, 'deprecated');
}
sub unimport {}
1;