Jun 17, 2013, 2:49 PM
Post #3 of 3
I am not using this module, but do you really expect:
Re: [Rehan] Problem in getting contents of a url
[In reply to]
my $webPage = get "zameen.com";
to get the content of an URL? Does "zameen.com" look like an URL in your view?
You probably need, at the very least, something like:
my $webPage = get "http://www.zameen.com";
To start with, I would suggest that you test the get return code. I am fairly sure that it is "undef" in your case.
So change it to something like:
my $webPage = get "http://www.zameen.com" or die "Could not open the URL \n";
It might still not work, but at least you might get a diagnosis telling you where to look.