Re: Expect.pm passing $exp to subroutine ** line number correction

2008-06-13 Thread Noah
Hi John and List members, Your advice has come in useful but still I am unable to keep the expect object variable $exp from one subroutine to another subroutine. sometihng gets broken and not sure what it is. still running in to problems at line 168 (formerly 167). Here is line 168: "$exp->

Re: Expect.pm passing $exp to subroutine ** line number correction

2008-06-12 Thread John W. Krahn
John W. Krahn wrote: Noah wrote: #delete saved configuraiton file unlink ($outputFilename); You should verify that unlink worked correctly: unlink $outputFilename or warn "Cannot unlink '$outputFilename' $!"; But you don't really need to unlink the file as you are opening it

Re: Expect.pm passing $exp to subroutine ** line number correction

2008-06-12 Thread John W. Krahn
Noah wrote: Hi, Hello, thank you again list members for the quick response to my last question. I am using the I am trying to figure out to pass my $exp to the subroutine "grabConfig". $exp is the variable of my expect object. line 167 is "$patidx = $exp->expect($timeout, [$prompt]); " he

Expect.pm passing $exp to subroutine ** line number correction

2008-06-12 Thread Noah
Hi, thank you again list members for the quick response to my last question. I am using the I am trying to figure out to pass my $exp to the subroutine "grabConfig". $exp is the variable of my expect object. line 167 is "$patidx = $exp->expect($timeout, [$prompt]); " here is the error message