in reply to Getting Web span from view source?

'in view source( "Application messages which is defined in server side script can be called from web span")'

I have no idea what you mean by that. This looks like an update to a previous post of yours. As Corion has pointed out WWW::Mechanize is a good starting point, for processing/stripping the HTML you may want to look at HTML::TokeParser::Simple.

Martin