3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-11 14:39:32 +01:00
pbot/lib/PBot/Imports.pm

37 lines
677 B
Perl
Raw Normal View History

2021-06-19 06:23:34 +02:00
# File: Imports.pm
#
# Purpose: Boilerplate imports for PBot packages.
2021-07-11 00:00:22 +02:00
# SPDX-FileCopyrightText: 2021 Pragmatic Software <pragma78@gmail.com>
# SPDX-License-Identifier: MIT
2021-06-19 06:23:34 +02:00
package PBot::Imports;
use Import::Into;
sub import {
my $target = caller;
# use strict
strict->import::into($target);
# use warnings
warnings->import::into($target);
2023-04-14 08:42:46 +02:00
# use feature ':5.20'
feature->import::into($target, ':5.20');
2021-06-19 06:23:34 +02:00
# use utf8
utf8->import::into($target);
# use signatures
feature->import::into($target, 'signatures');
# no warnings => 'experimental';
warnings->unimport::out_of($target, 'experimental');
2021-06-19 06:23:34 +02:00
}
sub unimport {}
2021-06-19 06:23:34 +02:00
1;