http://qs1969.pair.com?node_id=506697


in reply to convert UTF-8 in nested data structures

You could use Data::Structure::Util:

use Data::Structure::Util qw/ utf8_on /; $ref = { whatever => 'אטילעש' }; utf8_on( $ref );

Ciao, Valerio

Replies are listed 'Best First'.
Re^2: convert UTF-8 in nested data structures
by slayven (Pilgrim) on Nov 08, 2005 at 18:16 UTC
    The Description of the Module says
    use Data::Structure::Util qw/ utf8_on /;
    This routine performs a sv_utf8_upgrade on each scalar string in the passed data structure that does not have the utf8 flag turned on.
    This is not exactly what I'm looking for. I need to convert the string regardless the flag it has internally.
    -- slayven
            trust in bash
            but tie your camel