Hello!
I have a sript (see below) and
when I run the .pl and the .exe, the
results differ.
Some urls can be processed by both, other urls
only by the pl-script.
Can anyone tell me how to fix this?
Best regards,
Erich
Par:
> pp -o GetNews.exe GetNews.pl
Result .pl:
file://D:/tmp/perl/tst.xml: Data found!
Data found!
Data found!
Result .exe:
file://D:/tmp/perl/tst.xml: No Data!
No Data!
Data found!
Sript:
use LWP::Simple;
@urls = qw(
file://D:/tmp/perl/tst.xml
);
foreach $url (@urls){
$data = get( $url );
if (defined($data)){
print "$url: Data found!\n";
} else {
print "$url: No Data!\n";
}
}
I have a sript (see below) and
when I run the .pl and the .exe, the
results differ.
Some urls can be processed by both, other urls
only by the pl-script.
Can anyone tell me how to fix this?
Best regards,
Erich
Par:
> pp -o GetNews.exe GetNews.pl
Result .pl:
file://D:/tmp/perl/tst.xml: Data found!
Data found!
Data found!
Result .exe:
file://D:/tmp/perl/tst.xml: No Data!
No Data!
Data found!
Sript:
use LWP::Simple;
@urls = qw(
file://D:/tmp/perl/tst.xml
);
foreach $url (@urls){
$data = get( $url );
if (defined($data)){
print "$url: Data found!\n";
} else {
print "$url: No Data!\n";
}
}