--- sarika <[EMAIL PROTECTED]> wrote: > Hi, > i want to open a url in perl-cgi and process the contents (which will be HTML) >before i render > them on the browser. > What should i use? > in PHP we can do the following > $fp = fopen ("http://www.php.net/", "r"); > and work on $fp.. > > is there any equivalent of this in perl by which i can open a url? > > Thanks for the help > > regards > sarika
use strict; use CGI qw/:cgi/; use LWP::Simple; my $page = get( 'http://www.google.com/' ); print header; print $page; Cheers, Curtis "Ovid" Poe ===== Senior Programmer Onsite! Technology (http://www.onsitetech.com/) "Ovid" on http://www.perlmonks.org/ __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]