Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: decode characters from file using HTML::Entities

by Anonymous Monk
on Feb 18, 2011 at 16:37 UTC ( #888948=note: print w/replies, xml ) Need Help??


in reply to Re: decode characters from file using HTML::Entities
in thread decode characters from file using HTML::Entities

Ah I understand (maybe :)),

i think i forgot about double quotes (so \x26 is actually "&"), correct ?

So i guess the right tool is to use Encode..
  • Comment on Re^2: decode characters from file using HTML::Entities

Replies are listed 'Best First'.
Re^3: decode characters from file using HTML::Entities
by ikegami (Pope) on Feb 18, 2011 at 19:46 UTC

    Yes, the Perl string literal «"\x26"» evaluates to the string «&».

    No idea what Encode has to do with this.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://888948]
help
Chatterbox?
[Corion]: Maybe that's more "boiling a frog", but my toolkit of Machiavellian practices is fairly small

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2018-07-16 09:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (333 votes). Check out past polls.

    Notices?