B
Bumble
Hi all, trying to develop a program for my Uni project, it is given part of
the address from a form and then it should go to that address and retrieve
the page, now I only want a section of that page, so I'm wondering where I
could do that? Would I need to put it into a text file and then find the
required text from there, or can I manipulate a variable already used to
extract just the text I need? Sorry, just having a bit of trouble getting my
head around the code...
#!/usr/bin/perl -w
use CGI ':standard';
require LWP::UserAgent;
$ua = LWP::UserAgent->new;
$thisisit=param('thisisitinput');
$request = HTTP::Request->new('GET', 'http://www.whatever.com/$thisisit');
$response = $ua->request($request);
print ("<html><body bgcolor\"white\">");
print ("<p>$locate</p>");
print ("</body> </html>");
--
Bumble
The 18th 'Biggest Gay on Usenet'
http://bumble.rumble.at
"Your heart felt good it was drippin' pitch and made of wood, and your hands
and knees felt cold and wet on the grass to me. Outside naked, shiverin'
looking blue, from the cold sunlight that's reflected off the moon. Baby cum
angels fly around you reminding you we used to be three and not just two.
And that's how the world began. And that's how the world will end."
the address from a form and then it should go to that address and retrieve
the page, now I only want a section of that page, so I'm wondering where I
could do that? Would I need to put it into a text file and then find the
required text from there, or can I manipulate a variable already used to
extract just the text I need? Sorry, just having a bit of trouble getting my
head around the code...
#!/usr/bin/perl -w
use CGI ':standard';
require LWP::UserAgent;
$ua = LWP::UserAgent->new;
$thisisit=param('thisisitinput');
$request = HTTP::Request->new('GET', 'http://www.whatever.com/$thisisit');
$response = $ua->request($request);
print ("<html><body bgcolor\"white\">");
print ("<p>$locate</p>");
print ("</body> </html>");
--
Bumble
The 18th 'Biggest Gay on Usenet'
http://bumble.rumble.at
"Your heart felt good it was drippin' pitch and made of wood, and your hands
and knees felt cold and wet on the grass to me. Outside naked, shiverin'
looking blue, from the cold sunlight that's reflected off the moon. Baby cum
angels fly around you reminding you we used to be three and not just two.
And that's how the world began. And that's how the world will end."