in reply to Re^2: Onkeyup not working
in thread Onkeyup not working

But you didn't change: print <<HTML;

<<HTML is equivalent to <<"HTML", not <<'HTML'.

See "perlop: Quote-Like Operators: here-document syntax".

— Ken