Using Perl Expect.pm

From: Tapasranjanmohapatra (TapasranjanMohapatra_at_infosys.com)
Date: 03/26/04


Date: Fri, 26 Mar 2004 10:38:45 +0530
To: <beginners@perl.org>, "TapasranjanMohapatra" <TapasranjanMohapatra@infosys.com>

Hi,
Can someone tell me how to handle the vt100 sequences using expect module of perl.
 I have used the same sequences while using TCL Expect. It works fine. But I don't understand what is the problem while I try doing the same thing using Perl Expect.
 If my TCL Expect Code goes like:-
 
     send "\x09" # hexadecimal equivalent of a tab
     expect "\x1b?2;2H"

What should be the equivalent Perl code?
I am able to send "\x09" in perl but I think it doesn't expect the correct thing. Perhaps the semicolon has to be escaped but even after escaping the semicolon didn't solve the problem.
Can someone give some help or reference link where I can learn what these values
like "\x1b?2;2H" mean.

Thanks



Relevant Pages

  • Re: Perl interface
    ... Subject: Perl interface ... BioPerl is a collection of module to manage biological sequences, ... In general pattern matching is not different between PERL and BioPerl, ...
    (perl.beginners)
  • Help: Show specific part
    ... And I hope I can save the whole protein sequences with their ... "dna" file. ... Because of lacking of Perl knowledge, could you show me some tips? ...
    (comp.lang.perl.misc)
  • Using hashes to sort number sequences
    ... I posted to comp.lang.perl for help with a script ... Each file contains in the first column an identifier, ... and search for similar number sequences in file b.txt. ... # Perl script to compare to files with T6 CS & VS ...
    (comp.lang.perl.misc)
  • RE: Using Perl Expect.pm
    ... I have used the same sequences while using TCL ... > while I try doing the same thing using Perl Expect. ... Perhaps the semicolon has to be escaped but even after ... Show us the Perl code you're using. ...
    (perl.beginners)
  • Re: running two processes at the same time
    ... i have a file of 1000 DNA sequences. ... process output file1 ... It depends on how many CPU's you have and whether the processes will be using mostly CPU or IO to do their tasks. ... Perl isn't a toolbox, but a small machine shop where you ...
    (perl.beginners)