my @h; my @i= (0..1); @h[@i]= split / /, "This is a test case"; print "(@h)\n"; __END__ Output: (This is)