Re: expect module $expect->log_file(\&captureexpectout $arg2 $arg3);

2013-02-06 Thread Brandon McCaig
On Tue, Feb 05, 2013 at 02:39:17PM -0800, Rajeev Prasad wrote: > which i am calling like this: >   > $expect->log_file(\&captureexpectout); Note that 'captureexpectout' is hard to read and hard to write properly. You should use underscores or mixed case to fix this e.g., capture_expect_out. > Now

Re: expect module $expect->log_file(\&captureexpectout $arg2 $arg3);

2013-02-05 Thread Jim Gibson
On Feb 5, 2013, at 2:39 PM, Rajeev Prasad wrote: > 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)