Malcolm Mill wrote:
Hi, Can anyone help me with this.

I'm using wget, a perl script and a shell script to download files
from serveral directories on a web server.

The URLs I'm passing to wget are of the form:

http://www.foo.br/001/ - http://www.foo.br/050/

Untested:

#!/usr/bin/perl

use strict;
use warnings;

use LWP::Simple;

foreach my $id ( '001'..'050' ) {
    my $content = get("http://www.foo.br/$id/";);
    die "Couldn't get it!" unless defined $content;
    # ...
    # do something with $content
}

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to