Help for this page

Select Code to Download


  1. or download this
    use Scalar::Util qw( dualvar );
    
    ...
    my $foo = sensible();
    print "Result = ", ''.$foo, "\n";   # Result = one
    print "Result = ", 0+$foo,  "\n";   # Result = 1