mirror of
https://codeberg.org/h3xx/simplify_static_dir
synced 2024-08-14 23:57:24 +00:00
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
1 changed files with 3 additions and 2 deletions
|
@ -121,10 +121,11 @@ sub run_script_capture {
|
|||
seek $handle, 0, 0;
|
||||
}
|
||||
|
||||
local $/;
|
||||
return (
|
||||
$?,
|
||||
(join "\n", <CATCHOUT>),
|
||||
(join "\n", <CATCHERR>)
|
||||
scalar <CATCHOUT>, # slurp!
|
||||
scalar <CATCHERR>, # slurp!
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue