Binary package “libexpect-perl” in ubuntu focal

Expect.pm - Perl Expect interface

 The Expect module is a successor of Comm.pl and a descendent of Chat.pl. It
 more closely resembles the Tcl Expect language than its predecessors. It
 does not contain any of the networking code found in Comm.pl. I suspect this
 would be obsolete anyway given the advent of IO::Socket and external tools
 such as netcat.
 .
 Expect.pm is an attempt to have more of a switch() & case: feel to make
 decision processing more fluid. three separate types of debugging have
 been implemented to make code production easier.
 .
 It is now possible to interconnect multiple file handles (and processes) much
 like Tcl's expect. An attempt was made to enable all the features of Tcl's
 expect without forcing Tcl on the victim programmer :-) .