I tried debugging as advised
Here is the output
Use of uninitialized value $pattern_list[1] in print at try_expect.pl +line 24. 1SWBKPT hit for SLOT 1..!! PC-Value : 0x124 Blk Count = 1 Cycles + : 332 sproc1>loadprg a.out Endianness of the ELF file:0 .text matched [text segment] flag = 0x3 .ctors matched [data segment] flag = 0x3 .dtors matched [data segment] flag = 0x3 .data matched [data segment] sproc1>run Run mode selected Buffer Empty = 32 Buffer Empty = 32 Buffer Empty = 32 Buffer Empty = 32 Buffer Empty = 28 Expect=GLOB(0xa088960)
Now if am not wrong then $pattern_list1 should give me the value that would have been returned if expect() had been called in a scalar context. But its shows uninitialized. Now how should I set an expect for nothing....Help please
In reply to Re^2: Need Help in running Expect script in Perl
by subhasishn@yahoo.com
in thread Solved: Need Help in running Expect script in Perl
by subhasishn@yahoo.com
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |