in reply to
reg ex and the prompt
as
pzbagel
suggested check the return of spawn to see if it worked. Then if you will still need to match the prompt later just set it yourself that way you know what it will be. send "PS1='PROMPT$'" to the shell to set it.
Comment on
Re: reg ex and the prompt
In Section
Seekers of Perl Wisdom