Thread LWP!?? (10 answers)
Opened by Kogge at 2004-06-20 13:28

Oesi50
 2004-06-21 03:40
#2934 #2934
User since
2004-05-15
33 Artikel
BenutzerIn
[default_avatar]
versuchs mal damit:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/perl --

print "Content-type: text/html\n\n";
my ($Map,$start,$end);

use LWP::Simple;
$data = get("http://www.map24.ch/map24/routing.php3?lang=de&mid=LINK2&lid=f6424470&maptype=java&rtype=fast&sstreet=&szip=4150&scity=&scountry=ch&sdescription=Startbeschreibung&dstreet=Bergstrasse&dzip=4114&dcity=Hofstetten&dcountry=ch&ddescription=Zielbeschreibung");
die "Couldn't get it! $!" unless defined $data;

$start = '<!-- begin titlebar -->';
$end = '<!-- end titlebar -->';
$data =~ m/$start(.*)$end/si;
$Main_data = $1;

print $Main_data;

View full thread LWP!??