|
NAMEUnicode::RecursiveDowngrade - Turn off the UTF-8 flags inside of complex variable SYNOPSIS use Unicode::RecursiveDowngrade;
$rd = Unicode::RecursiveDowngrade->new;
$var = {
foo => 'bar',
baz => [
'qux',
'quux',
],
corge => \$grault,
};
$unflagged = $rd->downgrade($var);
DESCRIPTIONUnicode::RecursiveDowngrade will turn off the UTF-8 flag inside of complex variable in a lump. In spite of your intention, some modules turn it on every elements of returned variable. You may be hard up for turn them off if you don't need any UTF-8 flags in your variable. This module will fix it up easily. Sometime I think about the UTF-8 flag is not stead. But some "XML::Parser" based modules will turn it on. For example, "XML::Simple" is really simple way to parse XMLs, but this module returns a simple hashref including flagged values. This hashref is very hard to use, isn't it? METHODS
VARIABLES
AUTHORKoichi Taniguchi <taniguchi@livedoor.jp> COPYRIGHTCopyright (c) 2005 Koichi Taniguchi. Japan. All rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSOutf8
|