in reply to Re^3: Expect.pm control terminal width
in thread Expect.pm control terminal width

Also, looking at stty.pm I don't see that cols is a valid parameter which makes since with that error msg.