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);
|
|
|
|
|
|
|
|
# use feature ':5.16'
|
2023-04-13 20:37:39 +02:00
|
|
|
feature->import::into($target, ':5.20');
|
2021-06-19 06:23:34 +02:00
|
|
|
|
|
|
|
# use utf8
|
|
|
|
utf8->import::into($target);
|
|
|
|
|
2023-04-13 20:37:39 +02:00
|
|
|
# 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 {
|
|
|
|
}
|
|
|
|
|
|
|
|
1;
|