blib/lib/attrs.pm

filter: Statementstmt 100% 5 / 5 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 6 / 6 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« Gen.xs ↑ Summary
1 package attrs;
2  
3 2 ▶use vars qw($VERSION);
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 $VERSION = "0.1";
5  
6 2 1;
7  
8 =head1 NAME
9  
10 attrs - set/get attributes of a subroutine
11  
12 =head1 SYNOPSIS
13  
14 sub foo {
15 use attrs qw(locked method);
16 ...
17 }
18  
19 @a = attrs::get(\&foo);
20  
21 =head1 DESCRIPTION
22  
23 This module lets you set and get attributes for subroutines.
24  
25 For 5.004_xx this is an empty stub provided for backwards
26 compatibility for scripts and modules written for 5.005.
27  
28 =cut
« Gen.xs ↑ Summary