Scalar-Util-Reftype
view release on metacpan or search on metacpan
0.46 2018-12-25 BURAK
- Patch for 5.10.0
0.45 2018-12-25 BURAK
- Migrate to dzil.
- Workaround qr// returning blessed refs.
- _dump method.
0.44 Tue Jul 5 01:08:59 2016
- This module is DEPRECATED. Please use Ref::Util instead.
0.43 Sun Jul 8 01:50:04 2012
- Bump version.
0.42 Wed Nov 4 07:45:11 2009
- Defer Data::Dump::Streamer loading to runtime.
0.41 Tue Sep 22 01:01:16 2009
- Perl::Critic fixes.
lib/Scalar/Util/Reftype.pm view on Meta::CPAN
xyz() if reftype( sub {} )->array; # xyz() will never be called
$obj = bless {}, "Foo";
my $rt = reftype( $obj );
$rt->hash; # false
$rt->hash_object; # true
$rt->class; # "Foo"
=head1 DESCRIPTION
This module is B<DEPRECATED>. Please use L<Ref::Util> instead.
This is an alternate interface to C<Scalar::Util>'s C<reftype> function.
Instead of manual type checking you can just call methods on the result
to see if matches the desired type.
=head1 DEPRECATION NOTICE
This module is B<DEPRECATED>. Please use L<Ref::Util> instead.
=head1 NAME
Scalar::Util::Reftype - Alternate reftype() interface
=head1 FUNCTIONS
=head2 reftype EXPR
Exported by default. C<EXPR> can be any value (even C<undef>).
( run in 1.278 second using v1.01-cache-2.11-cpan-39bf76dae61 )