in reply to Variable messes up loops.

in addition to strict, using warnings will also catch a lot of potential problems.
#!/bin/perl use strict; use warnings;
i never leave home without those.

--cricket

i am smaller than a grasshopper