Tutorial.pm untested

filter: Statementstmt 0.0% 0 / 1 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 3 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 package XS::Tutorial;
2 BEGIN { our $VERSION = 0.03 }
3 1;
4  
5 =encoding utf8
6  
7 =head1 NAME
8  
9 XS::Tutorial - documentation with examples for learning Perl XS
10  
11 =over 4
12  
13 =item * L<XS::Tutorial::One> - how to pass to and return basic values from C functions
14  
15 =item * L<XS::Tutorial::Two> - working with more than one value at a time
16  
17 =item * L<XS::Tutorial::Three> - utility routines that are good to know
18  
19 =back
20  
21 =head1 SOURCES OF INFORMATION
22  
23 =head3 XS Mechanics by Steven W. McDougall
24  
25 A clear L<introduction|http://world.std.com/~swmcd/steven/perl/pm/xs/intro/> to XS programming.
26  
27 =head3 Extending and Embedding Perl (Manning) by Simon Cozens and Tim Jenness
28  
29 A thorough L<introduction|https://www.manning.com/books/extending-and-embedding-perl>, with many examples. Outdated in parts (mostly data structures) but still an excellent reference.
30  
31 =head3 perldoc
32  
33 =over 4
34  
35 =item * L<perlxs|http://perldoc.perl.org/perlxs.html>: syntax of xsubs
36  
37 =item * L<perlapi|http://perldoc.perl.org/perlapi.html> : C macros used to interact with Perl data structures (and the interpreter)
38  
39 =item * L<perlguts|http://perldoc.perl.org/perlguts.html>: Perl data structures
40  
41 =item * L<perlxstypemap|http://perldoc.perl.org/perlxstypemap.html>: typemap syntax (translating C types into Perl)
42  
43 =item * L<perlcall|http://perldoc.perl.org/perlcall.html>: how to call Perl subroutines and methods from XS
44  
45 =item * L<perlxstut|http://perldoc.perl.org/perlxstut.html>: another XS tutorial
46  
47 =back
48  
49 =head3 ExtUtils::MakeMaker
50  
51 The L<documentation|https://metacpan.org/pod/ExtUtils::MakeMaker> explains all of the options in C<Makefile.PL>. Useful if you need to pass additional flags or options to to the C compiler.
52  
53 =head3 ppport.h
54  
55 A header file, needed for compatibility across Perl versions. See L<Devel::PPPort|https://metacpan.org/pod/Devel::PPPort>.
56  
57 =head3 Perl source code
58  
59 if you can’t find an answer in documentation, grep the L<source|https://www.perl.org/get.html>.
60  
61 =cut