documentation fix - file to catch stderr cannot have the same name as file to catch stdout
Sven Kirmess
5 years ago
518 | 518 | provide custom filehandles as a trailing list of option pairs: |
519 | 519 | |
520 | 520 | 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+"); | |
522 | 522 | capture { ... } stdout => $out_fh, stderr => $err_fh; |
523 | 523 | |
524 | 524 | The filehandles must be read/write and seekable. Modifying the files or |