I'm quite sure that the displaytype=displaycode cgi argument makes perlmonks return the code as plain text, not HTML, so the angle brackets shouldn't be a problem.
Let me try.
use warnings; use strict;
my $u = "http://perlmonks.com/?node_id=662172;displaytype=displaycode"
+;
use LWP; print LWP::UserAgent->new->get($u)->content;
|