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";

}


 

 

 

Back to previous page

  Get Free Autoresponder

Enter your email address below and you will receive a powerful Autoresponder and our Special Ezine for free:

(Please use your real email address or else you won't receive the free script)

Name: *
Email: *

Or you can subscribe by clicking this link to send an email automatically:

mailto:amlmEzine@DrQuek.com