ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Convert-Scalar/Scalar.pm
(Generate patch)

Comparing Convert-Scalar/Scalar.pm (file contents):
Revision 1.5 by root, Wed Feb 12 20:42:10 2003 UTC vs.
Revision 1.6 by root, Sat Apr 24 06:23:12 2004 UTC

24=cut 24=cut
25 25
26package Convert::Scalar; 26package Convert::Scalar;
27 27
28BEGIN { 28BEGIN {
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)],
141instead if you understand what this function is fore. Better yet: don't 141instead if you understand what this function is fore. Better yet: don't
142use this module in this case. 142use this module in this case.
143 143
144=item refcnt_rv scalar[, newrefcnt] 144=item refcnt_rv scalar[, newrefcnt]
145 145
146Works like C<refcnt>, but dereferences the given reference first. Remember 146Works like C<refcnt>, but dereferences the given reference first. This is
147that taking a reference of some object increases it's reference count, so 147useful to find the reference count of arrays or hashes, which cnanot be
148the reference count used by the C<*_rv>-funtions tend to be one higher. 148passed directly. Remember that taking a reference of some object increases
149it's reference count, so the reference count used by the C<*_rv>-functions
150tend to be one higher.
149 151
150=item refcnt_inc_rv scalar 152=item refcnt_inc_rv scalar
151 153
152Works like C<refcnt_inc>, but dereferences the given reference first. 154Works like C<refcnt_inc>, but dereferences the given reference first.
153 155

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines