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.6 by root, Sat Apr 24 06:23:12 2004 UTC vs.
Revision 1.13 by root, Fri Mar 7 10:33:46 2008 UTC

24=cut 24=cut
25 25
26package Convert::Scalar; 26package Convert::Scalar;
27 27
28BEGIN { 28BEGIN {
29 $VERSION = '1.0'; 29 $VERSION = '1.04';
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)],
94 94
95Returns the number of characters in the string, counting wide UTF8 95Returns the number of characters in the string, counting wide UTF8
96characters as a single character, independent of wether the scalar is 96characters as a single character, independent of wether the scalar is
97marked as containing bytes or mulitbyte characters. 97marked as containing bytes or mulitbyte characters.
98 98
99=item unmagic scalar 99=item unmagic scalar, type
100 100
101Removes magic from the scalar. 101Remove the specified magic from the scalar (DANGEROUS!).
102 102
103=item weaken scalar 103=item weaken scalar
104 104
105Weaken a reference. (See also L<WeakRef>). 105Weaken a reference. (See also L<WeakRef>).
106 106
110 110
111=item tainted scalar 111=item tainted scalar
112 112
113returns true when the scalar is tainted, false otherwise. 113returns true when the scalar is tainted, false otherwise.
114 114
115=item untaint scalar, type 115=item untaint scalar
116 116
117Remove the specified magic from the scalar 117Remove the tainted flag from the specified scalar.
118(DANGEROUS!), L<perlguts>. L<Untaint>, for a similar but different
119interface.
120 118
121=item grow scalar, newlen 119=item grow scalar, newlen
122 120
123Sets the memory area used for the scalar to the given length, if the 121Sets the memory area used for the scalar to the given length, if the
124current length is less than the new value. This does not affect the 122current length is less than the new value. This does not affect the
188 sv_pvutf8n_force 186 sv_pvutf8n_force
189 the sv2xx family 187 the sv2xx family
190 188
191=head1 AUTHOR 189=head1 AUTHOR
192 190
193 Marc Lehmann <pcg@goof.com> 191 Marc Lehmann <schmorp@schmorp.de>
194 http://www.goof.com/pcg/marc/ 192 http://home.schmorp.de/
195 193
196=cut 194=cut
197 195

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines