File Coverage

blib/lib/builtin/Backport.pm
Criterion Covered Total %
statement 5 5 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 7 7 100.0


line stmt bran cond sub pod time code
1             # You may distribute under the terms of either the GNU General Public License
2             # or the Artistic License (the same terms as Perl itself)
3             #
4             # (C) Paul Evans, 2023 -- leonerd@leonerd.org.uk
5              
6             package builtin::Backport 0.01;
7              
8 11     11   130 use v5.18;
  11         38  
9 11     11   56 use warnings;
  11         19  
  11         451  
10              
11             =head1 NAME
12              
13             C - provide backported C functions for earlier Perl versions
14              
15             =head1 DESCRIPTION
16              
17             Perl version 5.36 added many functions in a module called C; these
18             may be further expanded in later perl versions. Many of the functions provided
19             in this space, however, can be implemented just fine on earlier Perl versions.
20              
21             This distribution provides a modified F file which includes most
22             of the missing functions for earlier versions of Perl. Once installed, code
23             can simply C as would work on Perl 5.36 onwards, and for the
24             most part would work identically.
25              
26             Some functions cannot be supported on older versions; where necessary this is
27             pointed out in the modified documentation in the module.
28              
29             Because C itself uses lexical exporting to provide its functions,
30             they can only be provided on Perl version 5.18 onwards, when lexical subs were
31             implemented.
32              
33             =cut
34              
35             =head1 AUTHOR
36              
37             Paul Evans
38              
39             =cut
40              
41             0x55AA;