s/</E<lt>/g will do unless you want to build tags dynamically too. (Then you also have to escape ">", and possibly "|" and "/" too.)
Note that you probably want one of the following here:
orCompare using Perl's C<E<lt>=E<gt>> instead of C<cmp>
Compare using Perl's C<< <=> >> instead of C<< cmp >>
In reply to Re: Escaping special characters for POD output
by ikegami
in thread Escaping special characters for POD output
by perlancar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |