Expect::Exp_Internal=1 sometimes has different effects
from $object->exp_internal(1). For instance, the
following messages are written only if
Expect::Exp_Internal is set:
Waiting for new data
Returning from expect with TIMEOUT or EOF
Or, for instance, the following messages are written
only if $object->exp_internal(1) has been issued:
Does `input' match: pattern #1:
Spawned 'command'
Logged In: YES
user_id=623225
The test program was issuing Expect::Exp_Internal=1 after
the object was created. If the statement is issued before
the object is created, all four messages in the above
examples are written.
This still leaves the problem that the first two messages
are not displayed if only $object->exp_internal(1) has been
issued.