Hello,
I have a working sub like this:
sub captureexpectout {
my $data_coming_in_from_expect_call = shift;
...do something with data..
...
...
}
which i am calling like this:
$expect->log_file(\&captureexpectout);
Now I want to call this subroutine with arguments. I tried below but I got
error...
$expect->log_file(\&captureexpectout($_,$myarg));
I was assuming that the data from expect call is contained in $_
but i get nothing. (seems like it passes blank to subroutine...)
pl advice.
Rajeev
- expect module $expect->log_file(\&captureexpectout $... Rajeev Prasad
- Re: expect module $expect->log_file(\&captureex... Jim Gibson
- Re: expect module $expect->log_file(\&captureex... Brandon McCaig
