1 /* Copyright (c) 2007-2008 H.Merijn Brand. All rights reserved.
2 * This program is free software; you can redistribute it and/or
3 * modify it under the same terms as Perl itself.
17 if (pipe (err)) return (NULL);
19 dd = Perl_sv_newmortal ();
22 if (dup (err[1]) == 2)
29 Perl_sv_setpvn (dd, "", 0);
30 while ((n = read (err[0], buf, 128)) > 0)
32 /* perl 5.8.0 did not export Perl_sv_catpvn */
33 Perl_sv_catpvn_flags (dd, buf, n, SV_GMAGIC);
35 Perl_sv_catpvn (dd, buf, n);
40 MODULE = DDumper PACKAGE = DDumper
49 ST (0) = newSVpv (Perl_sv_peek (sv), 0);
73 SV *dd = SvROK (sv) ? _DDump (SvRV (sv)) : NULL;
81 /* XS DDump reference */
86 DDump_IO (io, sv, level)
92 Perl_do_sv_dump (0, io, sv, 1, level, 1, 0);