It is more efficient to use the Perl modules than the external programs. LWP requires loading some Perl modules. But it saves forking and running another program. For a single page, it probably doesn't matter. For multiple pages, the difference could be huge.