Ref-Util
view release on metacpan or search on metacpan
use strict;
use warnings;
use Ref::Util qw<is_arrayref>;
use Test::More 'tests' => 1;
my ( $x, $y );
{
package Foo;
sub TIESCALAR { bless {}, shift }
sub FETCH { $x }
}
tie $y, 'Foo';
$x = [];
ok( is_arrayref($y), 'Will not accept tied hashref as arrayref' );
( run in 2.270 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )