line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Acme::MarkdownTest; |
2
|
|
|
|
|
|
|
$Acme::MarkdownTest::VERSION = '0.02'; |
3
|
|
|
|
|
|
|
# We need the following ABSTRACT line, as dzil can't find the abstract |
4
|
|
|
|
|
|
|
# from the markdown |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: test module to see how markdown is handled |
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
789
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
38
|
|
9
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
37
|
|
10
|
1
|
|
|
1
|
|
30
|
use 5.006; |
|
1
|
|
|
|
|
4
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=pod |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=begin markdown |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
# NAME |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
Acme::MarkdownTest - test module to see how markdown is handled |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
# SYNOPSIS |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
use Acme::MarkdownTest; |
23
|
|
|
|
|
|
|
... |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
# DESCRIPTION |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
This is an empty module that I'm using to see how well |
28
|
|
|
|
|
|
|
[markdown](https://daringfireball.net/projects/markdown/syntax) |
29
|
|
|
|
|
|
|
is supported for writing module documentation. |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
In this documentation I've tried to use most of the standard markdown |
32
|
|
|
|
|
|
|
elements, to see how they come out in perldoc, metacpan, and elsewhere. |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
> This is a blockquote |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
Then we have _italic_ and **bold** formatting. |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Let's have a bulleted list: |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
* first bullet |
41
|
|
|
|
|
|
|
* second bullet |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
And then a numbered list: |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
1. first item |
46
|
|
|
|
|
|
|
2. second item |
47
|
|
|
|
|
|
|
3. third item |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
And then a code sample: |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
# This is a comment |
52
|
|
|
|
|
|
|
if ($answer > 41 && $answer < 43) { |
53
|
|
|
|
|
|
|
print "hooray!\n"; |
54
|
|
|
|
|
|
|
} |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
And an inline `code()` example. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
The next line should produce a horizontal rule: |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
--- |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
# AUTHOR |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
Neil Bowers |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
# COPYRIGHT AND LICENSE |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
This software is copyright (c) 2021 by Neil Bowers. |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
73
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=end markdown |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=cut |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
1; |
80
|
|
|
|
|
|
|
|