line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
=head1 NAME |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
Scalar::Footnote::Functions - under-the-hood functions for L |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=head1 SYNOPSIS |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# Don't use this module directly! |
8
|
|
|
|
|
|
|
# You should use the Scalar::Footnote API to access footnotes cleanly. |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
use Scalar::Footnote::Functions qw( set_footnote get_footnote remove_footnote ); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
my $ref = []; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
# attach invisible footnote to $ref: |
15
|
|
|
|
|
|
|
set_footnote( $ref, 'footnote' ); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
# get it back: |
18
|
|
|
|
|
|
|
$footnote = get_footnote( $ref ); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
# remove it: |
21
|
|
|
|
|
|
|
$footnote = remove_footnote( $ref ); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
# or you can do things OO-stylee: |
24
|
|
|
|
|
|
|
$obj->Scalar::Footnote::set_footnote( $a_value ); |
25
|
|
|
|
|
|
|
$note = Scalar::Footnote::get_footnote( $obj ); |
26
|
|
|
|
|
|
|
$note = $obj->Scalar::Footnote::get_footnote; |
27
|
|
|
|
|
|
|
$note = $obj->Scalar::Footnote::remove_footnote; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=cut |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
package Scalar::Footnote::Functions; |
32
|
|
|
|
|
|
|
|
33
|
5
|
|
|
5
|
|
140468
|
use strict; |
|
5
|
|
|
|
|
15
|
|
|
5
|
|
|
|
|
267
|
|
34
|
5
|
|
|
5
|
|
30
|
use warnings; |
|
5
|
|
|
|
|
18
|
|
|
5
|
|
|
|
|
778
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
require Exporter; |
37
|
|
|
|
|
|
|
require DynaLoader; |
38
|
|
|
|
|
|
|
require AutoLoader; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
our @ISA = qw( Exporter DynaLoader ); |
41
|
|
|
|
|
|
|
our @EXPORT = qw( ); |
42
|
|
|
|
|
|
|
our @EXPORT_OK = qw( get_footnote set_footnote remove_footnote ); |
43
|
|
|
|
|
|
|
our $VERSION = '0.99_02'; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
bootstrap Scalar::Footnote::Functions $VERSION; |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
1; |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
__END__ |