r1.txt
r2.txt
r3.txt
r4.txt
r5.txt
(of course, test.cgi)
is it possible to open up all files that go r#.txt, where # is the next number in line? I was thinking something like this, but it doesn't quite work:
$i=0;
return;
while (return;i++)
{
if(-e "/r$i.txt")
{
return;
print "r$i.txt is there!";
}
else
{
}
}