Alternatives to Expect

Are there any other alternatives to using Expect script? Can functionality provided by Expect be achieved by any other scripting language?

a 'poor-man' implementation of the inline telnet - not exactly robust/useful...:

#!/bin/ksh
host='myHost'

    (
    sleep 3
    print "pvuser"
    sleep 1
    print "pvuser"
    sleep 2
    print "ls ~"
    sleep 1
    print "exit"
    sleep 3
    ) | telnet "${host}"

For what purpose?

Purpose is to completely stop using Expect and use passwordless ssh in bash or perl scripts to achieve same functionality as Expect.

ssh keys would be best. No need to store passwords in the scripts at all.

I am already using ssh keys but some of the script run into errors from remote host saying not on terminal cannot execute etc. So how do I emulate terminal behavior using ssh?

Python expect, etc... there are others... google is your friend (?)

ssh -t -t will force ssh to have a terminal on the remote end.