in reply to Re^2: Devel::Peek output to a string?
in thread Devel::Peek output to a string?
use strict; use warnings; my $sOut; close(STDERR); open(STDERR, ">", \$sOut) or die "Can't redirect STDERR to \\\$sOut"; print STDERR "Hello World!\n"; print $sOut;
happily outputs "Hello World" without generating a warning (at least on my system). Somehow, I don't think the Devel::Peek::Dump behavior qualifies as Inconsistent for the sake of convenience :-)
Best, beth
|
|---|