File Coverage

blib/lib/Scalar/Util.pm
Criterion Covered Total %
statement 0 7 0.0
branch 0 2 0.0
condition n/a
subroutine 0 2 0.0
pod 1 2 50.0
total 1 13 7.6


line stmt bran cond sub pod time code
1             # Copyright (c) 1997-2007 Graham Barr . All rights reserved.
2             # This program is free software; you can redistribute it and/or
3             # modify it under the same terms as Perl itself.
4             #
5             # Maintained since 2013 by Paul Evans
6              
7             package Scalar::Util;
8              
9             use strict;
10             use warnings;
11             require Exporter;
12              
13             our @ISA = qw(Exporter);
14             our @EXPORT_OK = qw(
15             blessed refaddr reftype weaken unweaken isweak
16              
17             dualvar isdual isvstring looks_like_number openhandle readonly set_prototype
18             tainted
19             );
20             our $VERSION = "1.61";
21             $VERSION =~ tr/_//d;
22              
23             require List::Util; # List::Util loads the XS
24             List::Util->VERSION( $VERSION ); # Ensure we got the right XS version (RT#100863)
25              
26             # populating @EXPORT_FAIL is done in the XS code
27             sub export_fail {
28 0 0   0 0   if (grep { /^isvstring$/ } @_ ) {
  0            
29 0           require Carp;
30 0           Carp::croak("Vstrings are not implemented in this version of perl");
31             }
32              
33 0           @_;
34             }
35              
36             # set_prototype has been moved to Sub::Util with a different interface
37             sub set_prototype(&$)
38             {
39 0     0 1   my ( $code, $proto ) = @_;
40 0           return Sub::Util::set_prototype( $proto, $code );
41             }
42              
43             1;
44              
45             __END__