in reply to Re^3: Array looping
in thread Array looping

Oh, it will work with file input too since it's reading from stdin. Just make sure the two sequences are separated by a space.