… | |
… | |
24 | =cut |
24 | =cut |
25 | |
25 | |
26 | package Convert::Scalar; |
26 | package Convert::Scalar; |
27 | |
27 | |
28 | BEGIN { |
28 | BEGIN { |
29 | $VERSION = 0.1; |
29 | $VERSION = '1.0'; |
30 | @ISA = qw(Exporter); |
30 | @ISA = qw(Exporter); |
31 | @EXPORT_OK = qw(weaken unmagic grow); |
31 | @EXPORT_OK = qw(weaken unmagic grow); |
32 | %EXPORT_TAGS = ( |
32 | %EXPORT_TAGS = ( |
33 | taint => [qw(taint untaint tainted)], |
33 | taint => [qw(taint untaint tainted)], |
34 | utf8 => [qw(utf8 utf8_on utf8_off utf8_valid utf8_upgrade utf8_downgrade utf8_encode utf8_decode utf8_length)], |
34 | utf8 => [qw(utf8 utf8_on utf8_off utf8_valid utf8_upgrade utf8_downgrade utf8_encode utf8_decode utf8_length)], |
… | |
… | |
141 | instead if you understand what this function is fore. Better yet: don't |
141 | instead if you understand what this function is fore. Better yet: don't |
142 | use this module in this case. |
142 | use this module in this case. |
143 | |
143 | |
144 | =item refcnt_rv scalar[, newrefcnt] |
144 | =item refcnt_rv scalar[, newrefcnt] |
145 | |
145 | |
146 | Works like C<refcnt>, but dereferences the given reference first. Remember |
146 | Works like C<refcnt>, but dereferences the given reference first. This is |
147 | that taking a reference of some object increases it's reference count, so |
147 | useful to find the reference count of arrays or hashes, which cnanot be |
148 | the reference count used by the C<*_rv>-funtions tend to be one higher. |
148 | passed directly. Remember that taking a reference of some object increases |
|
|
149 | it's reference count, so the reference count used by the C<*_rv>-functions |
|
|
150 | tend to be one higher. |
149 | |
151 | |
150 | =item refcnt_inc_rv scalar |
152 | =item refcnt_inc_rv scalar |
151 | |
153 | |
152 | Works like C<refcnt_inc>, but dereferences the given reference first. |
154 | Works like C<refcnt_inc>, but dereferences the given reference first. |
153 | |
155 | |