$i = 1; while ($i < 10) { system "lame -b 64 0$i* temp/0$i.mp3"; $i++; } while ($i < 14) { system "lame -b 64 $i* temp/$i.mp3"; $i++; }