Codebase list libcapture-tiny-perl / d588441
documentation fix - file to catch stderr cannot have the same name as file to catch stdout Sven Kirmess 5 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
518518 provide custom filehandles as a trailing list of option pairs:
519519
520520 my $out_fh = IO::File->new("out.txt", "w+");
521 my $err_fh = IO::File->new("out.txt", "w+");
521 my $err_fh = IO::File->new("err.txt", "w+");
522522 capture { ... } stdout => $out_fh, stderr => $err_fh;
523523
524524 The filehandles must be read/write and seekable. Modifying the files or