in reply to Using Variables with Variables

Sorry about all this non-sense...I'm just having a bad day I guess..Joost's first method works like a charm I'm just having a problem with my $icount variable. I was using it at the top of my script and for some reason it isn't keeping its value throughout the script, thus causing all this stupid confusion.