Maybe you're missing semicolons after your continue statements? (I don't even know what continue does, are you sure you need it?
Also, you may want to add a: $month = $day = 1; to the beginning so you don't get undefineds at the beginning. Also, when you increment the month you need to reset the day back to 1. Doesn't wget do this for you? I'm not sure (I use curl), but I think you can type something like this: wget "http://basic.url/dir/foo030[1-9][0-3][1-9].ext" Good luck. - B > I hope it's an easy one for you. It's not quite easy enough for me. > > I want to harvest some files from a website. The files are in this > format: > > fooYYMMDD.ext, as in foo030901.ext for September 1st, 2003. > > To wget the first nine months of this daily file, I need a file that > looks like this: > > http://basic.url/dir/foo030101.ext > http://basic.url/dir/foo030102.ext > http://basic.url/dir/foo030103.ext > . > . > http://basic.url/dir/foo030901.ext > > I'm too lazy to type all of this, so I'm trying to use this little > script to generate the file for me. It keeps tripping over the last > close bracket. Can you tell me what I'm doing wrong here? > > Thanks, > > Cy Kurtz > > Here's my script: > > #!/usr/bin/env perl > # > open OUTFILE, ">output.txt" or die "Can't open output.txt: $!"; > while($month < 9) > { > while($day < 31) > { > print OUTFILE "http://basic.url/dir/file03,$month,$day,.ext,\n"; > continue > $day++; > } > continue > $month++; > } > > > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]