1Module::CoreList::UtilsU(s3e)r Contributed Perl DocumentaMtoidounle::CoreList::Utils(3)
2
3
4
6 Module::CoreList::Utils - what utilities shipped with versions of perl
7
9 use Module::CoreList::Utils;
10
11 print $Module::CoreList::Utils::utilities{5.009003}{ptar}; # prints 1
12
13 print Module::CoreList::Utils->first_release('corelist');
14 # prints 5.008009
15
16 print Module::CoreList::Utils->first_release_by_date('corelist');
17 # prints 5.009002
18
20 Module::CoreList::Utils provides information on which core and dual-
21 life utilities shipped with each version of perl.
22
23 It provides a number of mechanisms for querying this information.
24
25 There is a functional programming API available for programmers to
26 query information.
27
28 Programmers may also query the contained hash structure to find
29 relevant information.
30
32 These are the functions that are available, they may either be called
33 as functions or class methods:
34
35 Module::CoreList::Utils::first_release('corelist'); # as a function
36
37 Module::CoreList::Utils->first_release('corelist'); # class method
38
39 "utilities"
40 Requires a perl version as an argument, returns a list of utilities
41 that shipped with that version of perl, or undef/empty list if that
42 perl doesn't exist.
43
44 "first_release( UTILITY )"
45 Requires a UTILITY name as an argument, returns the perl version
46 when that utility first appeared in core as ordered by perl version
47 number or undef ( in scalar context ) or an empty list ( in list
48 context ) if that utility is not in core.
49
50 "first_release_by_date( UTILITY )"
51 Requires a UTILITY name as an argument, returns the perl version
52 when that utility first appeared in core as ordered by release date
53 or undef ( in scalar context ) or an empty list ( in list context )
54 if that utility is not in core.
55
56 "removed_from( UTILITY )"
57 Takes a UTILITY name as an argument, returns the first perl version
58 where that utility was removed from core. Returns undef if the
59 given utility was never in core or remains in core.
60
61 "removed_from_by_date( UTILITY )"
62 Takes a UTILITY name as an argument, returns the first perl version
63 by release date where that utility was removed from core. Returns
64 undef if the given utility was never in core or remains in core.
65
67 These are the hash data structures that are available:
68
69 %Module::CoreList::Utils::utilities
70 A hash of hashes that is keyed on perl version as indicated in $].
71 The second level hash is utility / defined pairs.
72
74 Chris "BinGOs" Williams <chris@bingosnet.co.uk>
75
76 Currently maintained by the perl 5 porters <perl5-porters@perl.org>.
77
78 This module is the result of archaeology undertaken during QA Hackathon
79 in Lancaster, April 2013.
80
82 Copyright (C) 2013 Chris Williams. All Rights Reserved.
83
84 This module is free software; you can redistribute it and/or modify it
85 under the same terms as Perl itself.
86
88 corelist, Module::CoreList, perl, <http://perlpunks.de/corelist>
89
90
91
92perl v5.30.2 2020-04-29 Module::CoreList::Utils(3)