From: BLACKSTONE, J. D. <jda...@ci...> - 2003-05-13 13:37:36
|
Hi, Roopa. This is more of a general Perl issue than a Perl expect issue. Perl comes with a wealth of online documentation, which you can access with the perldoc program, or also at http://www.perldoc.com/ . I believe you'll find the perlretut manpage available at http://www.perldoc.com/perl5.8.0/pod/perlretut.html covers what you need. If you've never done regular expressions before, you'll want to start at the beginning (and maybe even read perlrequick first at http://www.perldoc.com/perl5.8.0/pod/perlrequick.html); otherwise, just search for "multi-line" on that page. To build your Perl skills, I emphatically recommend that you read through the documentation in the order given at http://www.perldoc.com/perl5.8.0/pod/perl.html , and purchase the "Llama book" _Learning Perl_ by Randall Schwartz et. al., and the "Camel book" _Programming Perl_ by Larry Wall et. al. jdb -----Original Message----- From: Roopa [mailto:ro...@de...] Sent: Tuesday, May 13, 2003 5:21 AM To: exp...@li... Subject: [Expectperl-discuss] Help !! Hi all, I am new to perl programming and expect and need some help. I want to compare the output of my API execution with the expected result. How can i do this ? My exp->before gives me the output of my test execution which i want to compare with another buffer $result. Each of these have several lines. E.g Hello World This is my first program. How to do this multi line comparison ? |