Re: Need dependency-free way of capturing verbose function output in a variable

[email protected] (Ricardo Signes)
Newsgroups perl.cpan.workers
Message-ID <[email protected]>
The core SelectSaver module is useful for this problem.

  use SelectSaver;

  {
    my $guard = SelectSaver->new($local_test_output_collecting_fh);

    run_test_code;
  }

  # the local fh got the test prints, but prints out here go to the previous
  # target

-- 
rjbs
signature.asc (application/pgp-signature, 473 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJVrZ8WAAoJEOYby6cMccU55KwIAL2VmuW0IYAz47CPDnWoRB5d
+R3gz+2VKPcfwq4KB3HCWG7ISjocbF8OzOM75SrncRGyn0LQ2QsW32BRTPiwaNeq
reUebH+0GTxRBN1qBV2fGmDO9uhOjewEL6sIKA0Oc/O0LNOhc2xozksrCQC2BW4T
L/4/tosuu5Zf31Z1xkOVUzl0vSbXeUd+cPzTkv10D04afslwEZ9KNydCpkdheTkR
2xNQFW+gG5beR6xlldkpIzx1XuXu78KPLFQpJ4iKsLOW20z/HhVuuHeZlFDtrPgd
PrZASPa5h1XECQjFLfCAuSQsWZoOqEfFFypnbVFRagqFXfnl9Su06aDhcJAO140=
=yuCB
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.