in reply to HTML source grab

Use LWP::UserAgent to grab the HTML source and then use HTML::Parser to find the meta tags. You can then print the meta tags to the browser or do whatever with them.

Also make sure to pay attention to security, especially if you're accepting input from the browser. I'm sure you don't want people using your script to feed nasty stuff to other people's scripts.