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.
In reply to Re^4: Array looping by vrk in thread Array looping by Nansh