$ perl foobar.pl Remaining text is '
Simple code to connect and login to HP Procurve use(ing) Expect below, generates following output to STDOUT and PATH/FILE
Connecting to Tacacs server Username: