in reply to How to get xml page source if url is given
For fetching http://www.perlmonks.org... see the example script at can someone help me?.
In reality look at the cpan modules LWP::UserAgent, AnyEvent::HTTP, WWW::Curl, LWP::Curl etc.