problem with a looop and with a site
- From: "alex123x@xxxxxxxxx" <alex123x@xxxxxxxxx>
- Date: 26 Feb 2006 12:01:15 -0800
Hello all,
The program runs a loop and each time it sends a signal to the site and
checks whether its ok or not and then it creates a file with the name
of the good port
but the program doesnt work and i dont know what to do, plz help me
use strict;
use LWP::Simple;
my $i=1;
my ($site);
open (FH,">c:/portss.txt") or die "Ahhh";
while ($i<10000) {
$site = get("http\:\/\/connect.majestyc
..net\/\?t=$i\&u=80");
open (FH,">c:/portss.txt");
print (FH $site,"\n");
foreach (<FH>) {
if ($_=~m/Connected OK/i){
open (ST,">C:/Downloads/$1.txt");
}}
$i=$i+1;
}
.
- Follow-Ups:
- Re: problem with a looop and with a site
- From: DJ Stunks
- Re: problem with a looop and with a site
- Prev by Date: Perl for Perforce (P4)
- Next by Date: Re: problem with a looop and with a site
- Previous by thread: Perl for Perforce (P4)
- Next by thread: Re: problem with a looop and with a site
- Index(es):
Relevant Pages
|
|