view release on metacpan or search on metacpan
lib/Ref/Util/XS.pm view on Meta::CPAN
package Ref::Util::XS;
# ABSTRACT: XS implementation for Ref::Util
$Ref::Util::XS::VERSION = '0.117';
use strict;
use warnings;
use XSLoader;
use Exporter 5.57 'import';
lib/Ref/Util/XS.pm view on Meta::CPAN
is_blessed_refref
>] );
our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
XSLoader::load('Ref::Util::XS', $Ref::Util::XS::{VERSION} ? ${ $Ref::Util::XS::{VERSION} } : ());
if (_using_custom_ops()) {
for my $op (@{$EXPORT_TAGS{all}}) {
no strict 'refs';
*{"B::Deparse::pp_$op"} = sub {
lib/Ref/Util/XS.pm view on Meta::CPAN
=encoding UTF-8
=head1 NAME
Ref::Util::XS - XS implementation for Ref::Util
=head1 VERSION
version 0.117
=head1 SYNOPSIS
use Ref::Util;
# Don't use Ref::Util::XS directly!
if (is_arrayref($something) {
print for @$something;
}
elsif (is_hashref($something)) {
print for sort values %$something;
}
=head1 DESCRIPTION
Ref::Util::XS is the XS implementation of Ref::Util, which provides several
functions to help identify references in a more convenient way than the
usual approach of examining the return value of C<ref>.
You should use L<Ref::Util::XS> by installing L<Ref::Util> itself: if the system
you install it on has a C compiler available, C<Ref::Util::XS> will be
installed and used automatically, providing a significant speed boost to
everything that uses C<Ref::Util>.
See L<Ref::Util> for full documentation of the available functions.
=head1 THANKS
The following people have been invaluable in their feedback and support.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Robots/Validate.pm view on Meta::CPAN
use Moo 1;
use MooX::Const v0.4.0;
use List::Util 1.33 qw/ first none /;
use Net::DNS::Resolver;
use Ref::Util qw/ is_plain_hashref /;
use Types::Standard -types;
# RECOMMEND PREREQ: Type::Tiny::XS
# RECOMMEND PREREQ: Ref::Util::XS
use namespace::autoclean;
our $VERSION = 'v0.2.9';
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Ryu/Source.pm view on Meta::CPAN
no indirect;
use sort qw(stable);
use Scalar::Util ();
use Ref::Util ();
use List::Util ();
use List::UtilsBy;
use Encode ();
use Syntax::Keyword::Try;
use Future;
lib/Ryu/Source.pm view on Meta::CPAN
sub flat_map {
my ($self, $code) = splice @_, 0, 2;
# Upgrade ->flat_map(method => args...) to a coderef
if(!Ref::Util::is_plain_coderef($code)) {
my $method = $code;
my @args = @_;
$code = sub { $_->$method(@args) }
}
lib/Ryu/Source.pm view on Meta::CPAN
$add->($self->_completed);
$self->each_while_source(sub {
my $src = $weak_sauce or return;
for ($code->($_)) {
my $item = $_;
if(Ref::Util::is_plain_arrayref($item)) {
$log->tracef("Have an arrayref of %d items", 0 + @$item);
for(@$item) {
last if $src->is_ready;
$src->emit($_);
}
view all matches for this distribution
view release on metacpan or search on metacpan
lib/SDL2/Utils.pm view on Meta::CPAN
use File::Spec::Functions qw[catdir canonpath rel2abs];
use Path::Tiny qw[path];
use File::Share qw[dist_dir];
use Config;
use SDL2::Utils::Type::Enum;
use Ref::Util qw( is_ref is_plain_arrayref is_plain_hashref );
sub deprecate ($str) {
warnings::warn( 'deprecated', $str ) if warnings::enabled('deprecated');
}
view all matches for this distribution
view release on metacpan or search on metacpan
Added List::Util::forall
Change 273 on 1999/03/21 by <gbarr@pobox.com> (Graham Barr)
Added weaken and isweak to Ref::Util
Change 272 on 1999/03/21 by <gbarr@pobox.com> (Graham Barr)
Add new .pm files to repository
Change 271 on 1999/03/21 by <gbarr@pobox.com> (Graham Barr)
- Split into three packages Ref::Util, List::Util and Scalar::DualVar
- readonly and clock were removed in favor of other modules
Change 270 on 1999/03/21 by <gbarr@pobox.com> (Graham Barr)
Rename package
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Scalar/Util/Reftype.pm view on Meta::CPAN
$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
view all matches for this distribution
view release on metacpan or search on metacpan
devel/rdfs.pl view on Meta::CPAN
use List::Util 1.33 qw/ any pairgrep uniqstr /;
use LWP::UserAgent;
use Path::Tiny;
use RDF::Prefixes;
use RDF::Trine;
use Ref::Util qw/ is_plain_arrayref /;
use String::CamelCase qw/ decamelize /;
use Template;
use Text::Wrap qw/ wrap /;
use Types::Standard -types;
use URI;
view all matches for this distribution
view release on metacpan or search on metacpan
"FFI::Platypus" : "1.00",
"File::Basename" : "0",
"File::ShareDir" : "0",
"File::Spec" : "0",
"Path::Tiny" : "0",
"Ref::Util" : "0",
"Sub::Util" : "0",
"feature" : "0",
"perl" : "5.008",
"strict" : "0",
"utf8" : "0",
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Specio.pm view on Meta::CPAN
There are several optional prereqs that if installed will make this
distribution better in some way.
=over 4
=item * L<Ref::Util>
Installing this will speed up a number of type checks for built-in types.
=item * L<XString>
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Spreadsheet/GenerateXLSX.pm view on Meta::CPAN
use warnings;
use parent 'Exporter';
use Carp qw/ croak /;
use Ref::Util qw/ is_arrayref is_ref /;
use Excel::Writer::XLSX;
our @EXPORT_OK = qw/ generate_xlsx /;
my $MAX_EXCEL_COLUMN_WIDTH = 80;
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Statistics/Sampler/Multinomial.pm view on Meta::CPAN
use strict;
our $VERSION = '1.02';
use Carp;
use Ref::Util qw /is_arrayref/;
use List::Util qw /min sum/;
use List::MoreUtils qw /first_index/;
use Scalar::Util qw /blessed looks_like_number/;
#use parent qw/Clone/;
use Clone ();
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Stringify/Deep.pm view on Meta::CPAN
our @EXPORT = qw();
our @EXPORT_OK = qw(deep_stringify);
use Data::Structure::Util qw(unbless);
use Ref::Util qw(is_blessed_ref);
our $VERSION = '0.03';
=head1 NAME
view all matches for this distribution
view release on metacpan or search on metacpan
},
"runtime" : {
"requires" : {
"Exporter" : "0",
"Hash::Util" : "0",
"Ref::Util" : "0",
"perl" : "5.006"
}
}
},
"release_status" : "stable",
view all matches for this distribution