in reply to Dump a Web PAge to a text File

See WWW::Mechanize, or just URI.

I'm not sure where your concrete problem is, as you don't tell us where you have problems and don't show any code. URI makes it easy to construct an URL given the base URL and the relative path. WWW::Mechanize makes it easy to navigate and extract web pages.

Replies are listed 'Best First'.
Re^2: Dump a Web PAge to a text File
by shayak (Acolyte) on Mar 14, 2011 at 08:36 UTC
    i want to randomly download a file from any website. So i wanted to go to a particular website and then download a particular file from it. For that i need to convert the web page into a text file to extract the URI of the file..

      Consider using the WWW::Mechanize module. The documentaion is clear and it provides the functionality you require to solve your current problem.

      You've been advised several times now to look at using a module such as WWW::Mechanize, it has great documentation. For some reason you aren't telling us you don't want to take this advice. If you do take this advice you'd find it an easy solution to your current problem.

      Update: fixed link to WWW::Mechanize, thanks Corion.

      Update 2: My mistake, updated reply.