- or download this
use Config qw( %Config );
use Devel::Peek qw( Dump );
...
Dump $s;
printf "%x\n", SvPV_force( $s );
Dump $s;
- or download this
SV = PV(0x57565c72fee0) at 0x57565c75e0d0
REFCNT = 1
...
PV = 0x57565c785bc0 "abc"\0
CUR = 3
LEN = 16
- or download this
use B qw( svref_2object );
...
my $s = "0123456789";
printf "%x\n", SvPVX( $s ) while $s =~ /\G./g;