This is apparently due to a bug in Devel::Peek::Dump (see my note below). To eliminate the warning on those systems you will need to make the following change to the subroutine suggested by repellent:
sub dump_as_str { my $str; # redirect STDERR temporarily open(my $ORIGSTDERR, ">&", STDERR) and close(STDERR) and open(STDERR, ">", \$str) or die($!); #----------------------------------------------------- #revision to suppress warnings - see bug report #63498 #----------------------------------------------------- #Dump($_[0]); { no warnings 'uninitialized'; Dump($_[0]); } # restore STDERR open(STDERR, ">&=" . fileno($ORIGSTDERR)) or die($!); return $str; }
Best beth
In reply to Re^2: Devel::Peek output to a string?
by ELISHEVA
in thread Devel::Peek output to a string?
by perl5ever
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |