in reply to Slow file creator

Lots of fine comments already, but...

### Read in the choice. $choice = <STDIN>; chomp ($choice); ### Divide the choice. $divide = $choice / $choice;

Just to add...."$divide=$choice/$choice" is always going to be either 1 or "0/0". You don't want to compute 0/0, especially!