- or download this
$var = ($type)SvPV_nolen($arg)
- or download this
if (SvOK($arg))
$var = ($type)SvPV_nolen($arg);
else
$var = INT2PTR($type,SvIV($arg))
- or download this
INPUT
...
$var = ($type)SvPV_nolen($arg);
else
$var = INT2PTR($type,SvIV($arg))
- or download this
use strict;
use warnings;
...
my $z = foo('');
Dump $z;