# Create a user agent object $ua = LWP::UserAgent->new; $cache = $ua->conn_cache(LWP::ConnCache->new( )); $ua->conn_cache->total_capacity(undef); $ua->agent("MyApp/1.3");