Help for this page

Select Code to Download


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