http://www.perlmonks.org?node_id=909423

Trihedralguy has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks, I've been using encode_entities very successfully, it seemed better at the time, but I've been inserting my data into a db with encode_entities. Displaying them on a website was as simple as just select column from table. Now however, I would like to use that same data on a device that is not web, AKA doesnt render entities. I tried to do the following:
my $string = "foo   bar"; $string = decode_entities($string); print $string
But my data just comes back as my input, what I'm I doing wrong here?