… | |
… | |
23 | =cut |
23 | =cut |
24 | |
24 | |
25 | package Convert::Scalar; |
25 | package Convert::Scalar; |
26 | |
26 | |
27 | BEGIN { |
27 | BEGIN { |
28 | $VERSION = 0.07; |
28 | $VERSION = 0.08; |
29 | @ISA = qw(Exporter); |
29 | @ISA = qw(Exporter); |
30 | @EXPORT_OK = qw(weaken unmagic grow); |
30 | @EXPORT_OK = qw(weaken unmagic grow); |
31 | %EXPORT_TAGS = ( |
31 | %EXPORT_TAGS = ( |
32 | taint => [qw(taint untaint tainted)], |
32 | taint => [qw(taint untaint tainted)], |
33 | utf8 => [qw(utf8 utf8_on utf8_off utf8_valid utf8_upgrade utf8_downgrade utf8_encode utf8_decode utf8_length)], |
33 | utf8 => [qw(utf8 utf8_on utf8_off utf8_valid utf8_upgrade utf8_downgrade utf8_encode utf8_decode utf8_length)], |
… | |
… | |
124 | if you know the scalar will grow. The return value is the modified scalar |
124 | if you know the scalar will grow. The return value is the modified scalar |
125 | (the scalar is modified in-place). |
125 | (the scalar is modified in-place). |
126 | |
126 | |
127 | =item refcnt scalar[, newrefcnt] |
127 | =item refcnt scalar[, newrefcnt] |
128 | |
128 | |
129 | Returns the current refference count of the given scalar and optionally sets it to |
129 | Returns the current reference count of the given scalar and optionally sets it to |
130 | the given reference count. |
130 | the given reference count. |
131 | |
131 | |
132 | =item refcnt_inc scalar |
132 | =item refcnt_inc scalar |
133 | |
133 | |
134 | Increments the reference count of the given scalar inplace. |
134 | Increments the reference count of the given scalar inplace. |