| 1 |
Revision history for Var-Pairs |
| 2 |
|
| 3 |
0.000001 Fri May 25 06:52:11 2012 |
| 4 |
Initial release. |
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
0.001000 Wed Jul 18 13:54:16 2012 |
| 9 |
|
| 10 |
First public release |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
0.001001 Wed Jul 18 13:55:31 2012 |
| 15 |
|
| 16 |
Update README |
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
0.001002 Sat Mar 23 07:58:28 2013 |
| 21 |
|
| 22 |
Removed autobox dependency for t/kvs.t |
| 23 |
(Thanks Salvatore!) |
| 24 |
|
| 25 |
|
| 26 |
0.001003 Thu Aug 8 11:46:09 2013 |
| 27 |
|
| 28 |
Converted to use Devel::Callsite instead of Scope::Upper |
| 29 |
in order to identify caller location for the each_... |
| 30 |
family of functions. |
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
0.001005 Tue Mar 11 10:17:52 2014 |
| 35 |
|
| 36 |
Added export controls (thanks Rob) |
| 37 |
|
| 38 |
|
| 39 |
0.002000 Sat Apr 5 17:19:03 2014 |
| 40 |
|
| 41 |
Converted Pair class to array-based for a 50% speed-up |
| 42 |
(thanks Toby!) |
| 43 |
|
| 44 |
Added ->kv() to Pair type |
| 45 |
(thanks Toby) |
| 46 |
|
| 47 |
|
| 48 |
0.002001 Wed Mar 11 20:04:58 2015 |
| 49 |
|
| 50 |
Swapped a doc nit (thanks Garry!) |
| 51 |
|
| 52 |
Documented non-resettable nature of each_kv() iterators |
| 53 |
(i.e. they don't reset when the original hash is key()'d) |
| 54 |
(thanks John) |
| 55 |
|
| 56 |
Allowed each_kv to work correctly on different containers |
| 57 |
that are passed to the same call: each_kv( %{$some_ref} ) |
| 58 |
(thanks John!) |
| 59 |
|
| 60 |
|
| 61 |
0.002002 Wed Mar 11 20:13:33 2015 |
| 62 |
|
| 63 |
Allowed each_pair and pairs to also work correctly on different |
| 64 |
containers that are passed to the same call |
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
0.002003 Wed Mar 11 20:42:14 2015 |
| 69 |
|
| 70 |
Fixed brittle testing approach in t/each_via_ref.t |
| 71 |
(Thanks Slaven!) |
| 72 |
|
| 73 |
Neutralized irritating experimental warnings on reference operations |
| 74 |
(Thanks Slaven) |
| 75 |
|
| 76 |
|
| 77 |
0.002004 Wed Mar 11 21:01:52 2015 |
| 78 |
|
| 79 |
Sigh. Tweak experimentals warnings for 5.18. |
| 80 |
(Thanks again Slaven) |
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
0.003000 Sat Aug 20 12:04:59 2016 |
| 85 |
|
| 86 |
Strip out autoderefs to continue working under 5.23+ |
| 87 |
(thanks, Slaven) |
| 88 |
|
| 89 |
Improve identification of each unique context |
| 90 |
(by adding use of context()) |
| 91 |
|
| 92 |
Refactor Var::Pairs::Pair to avoid use of Data::Alias |
| 93 |
under Perl 5.24+ |
| 94 |
(thanks Salvatore) |
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
0.003002 Sat Aug 20 16:49:20 2016 |
| 99 |
|
| 100 |
Updated MANIFEST |
| 101 |
|
| 102 |
Documented reliance on Data::Alias |
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
0.003004 Sat Aug 20 19:18:50 2016 |
| 108 |
|
| 109 |
Adjusted requirement for Data::Alias |
| 110 |
down to pre-5.22 |
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
0.003005 Mon May 7 06:55:18 2018 |
| 116 |
|
| 117 |
Made each_pair() and each_kv() clean themselves up |
| 118 |
at the end of their caller's block, to solve the |
| 119 |
"last of out a loop messes up the iterator" problem. |
| 120 |
(Thanks, Rolf!) |
| 121 |
|
| 122 |
|
| 123 |
0.004000 Mon May 7 15:44:52 2018 |
| 124 |
|
| 125 |
Allowed each_pair() and each_kv() to take a subroutine |
| 126 |
as an iterator. |
| 127 |
|
| 128 |
Added each_value() to return just the value iterated |
| 129 |
without returning the key. |
| 130 |
|
| 131 |
INCOMPATIBLE CHANGE: |
| 132 |
Improved behaviour of each_pair() and each_kv(). |
| 133 |
Now they differentiate between: |
| 134 |
|
| 135 |
while (my $pair = each_pair $NAMED_CONTAINER) {...} |
| 136 |
and: |
| 137 |
while (my $pair = each_pair EXPRESSION_PRODUCING_CONTAINER_REF) {...} |
| 138 |
|
| 139 |
If the container is NOT passed in a named variable (i.e. as a simple |
| 140 |
scalar, array, or hash variable), then the iteration is NOT specific |
| 141 |
to the container, only to the location. In other words, when the argument |
| 142 |
is an expression, the value of that expression is only significant |
| 143 |
at the beginning of the iteration loop; if it changes during the loop, |
| 144 |
the changes are ignored. This produces a lot more "do-what-I-mean"-ness. |
| 145 |
|
| 146 |
|
| 147 |
|
| 148 |
|
| 149 |
0.004001 Wed May 9 18:01:58 2018 |
| 150 |
|
| 151 |
POD fix (thanks, Salvatore) |
| 152 |
|
| 153 |
|
| 154 |
0.004002 Tue Jul 4 21:52:33 2023 |
| 155 |
|
| 156 |
* Removed all given/when and smartmatching for compatibility with Perl 5.38+ |