in reply to Re^3: HTML::Entities not encoding @ or .
in thread HTML::Entities not encoding @ or .

Thats weird thing to do, considering the documentation says The default set of characters to encode are control chars, high-bit chars, and the <, &, >, and " characters..
Reading the source would also be better
} else { # Encode control chars, high bit chars and '<', '&', '>', ''' and +'"' $$ref =~ s/([^\n\r\t !\#\$%\(-;=?-~])/$char2entity{$1} || num_enti +ty($1)/ge; }