CGI
is a Perl library which provides a programming interface for creation of web pages which consist some forms and parsing their content easy using of its methods. LWP
is a Perl library which provides a programming interface for work with WWW, especially creation of web client.