Help for this page

Select Code to Download


  1. or download this
    use Test::More 'tests' => 25;
    use Scalar::Util qw( reftype blessed );
    ...
    is( reftype $notrx, 'SCALAR', 'reftype $notrx eq "SCALAR"' );
    ok( ! defined $$notrx, '$$notrx is not defined' );
    ok( !('foo' =~ $notrx), '$notrx does not match "foo"' );