18 - Term::ProgressBar use Term::ProgressBar; use LWP::Simple qw(mirror); my @users = qw( cjb kv227 mackay pjc51 rpa23 saw27 ); my $no_pages = @users; my $progress = Term::ProgressBar->new({count => $no_pages}); my $got = 0; foreach my $user (@users) { # work out the url my $url = "http://www.inference.phy.cam.ac.uk/$user/"; # download the url and save it to disk mirror( $url, "$user.html" ); # update the progress bar $progress->update(++$got); }