produce numbers
Do you want to produce numbers, one per line? This program will print the numbers from one to thousand into the file 1000.txt (of course you can change the numbers).
for(my $i = 1; $i <= 1000; $i++) { open (OUTFILE, ">>1000.txt"); print OUTFILE "$i\n"; }