${"var$_"}=0 for(1..20); #but why aren't you using @var[1..20] ?