in reply to identifying an IPC::Run + eval block error
Modified two lines, see comment:
sub authUser { # open two-way pipe to auth script (or die with an error) my($h,$in,$out,$err,$t); my @cmd = ( $pathToPerl, './auth.pl' ); eval { $h = harness(\@cmd, \$in, \$out, \$err, $t=timeout (5)); #modi +fied this line to fix timeout syntax start($h); $in = "$cUser\n$cPass\n"; pump($h) while length($in); ## Wait for all input to go pump($h) until $out =~ m/\n\x1E\x1E\x1D\x1E/; finish $h; }; #modified this line, added ';' if ($@) { $h->kill_kill; die("failed to connect to authorization module: $@"); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: identifying an IPC::Run + eval block error
by EvanK (Chaplain) on Aug 27, 2005 at 01:41 UTC |