in reply to Web Crawaling problem with JustDial

If visual solution for recording the session is acceptable, please take a look at Selenium. You can record the session in your browser and export it to Perl code.