Fix join()ed readline (PBP)
Use $/ to slurp the whole handle instead of splitting and joining.
This commit is contained in:
parent
9115c6bdca
commit
d6be215a06
|
@ -121,10 +121,11 @@ sub run_script_capture {
|
||||||
seek $handle, 0, 0;
|
seek $handle, 0, 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local $/;
|
||||||
return (
|
return (
|
||||||
$?,
|
$?,
|
||||||
(join "\n", <CATCHOUT>),
|
scalar <CATCHOUT>, # slurp!
|
||||||
(join "\n", <CATCHERR>)
|
scalar <CATCHERR>, # slurp!
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue