1Test::LeakTrace::ScriptU(s3e)r Contributed Perl DocumentaTteisotn::LeakTrace::Script(3)
2
3
4

NAME

6       Test::LeakTrace::Script - A LeakTrace interface for whole scripts
7

SYNOPSIS

9               #!perl -w
10               use Test::LeakTrace::Script sub{
11                       my($svref, $file, $line) = @_;
12
13                       warn "leaked $svref from $file line $line.\n";
14               };
15

DESCRIPTION

17       This is a interface to "Test::LeakTrace" for whole scripts.
18

INTERFACE

20   Command line interface
21               $ perl -MTest::LeakTrace::Script script.pl
22
23               $ perl -MTest::LeakTrace::Script=-verbose script.pl
24
25               $ TEST_LEAKTRACE=-lines script.pl
26

ENVIRONMENT VARIABLES

28   TEST_LEAKTRACE=mode
29       -simple (DEFAULT)
30
31       -sv_dump
32
33       -lines
34
35       -verbose
36

SEE ALSO

38       Test::LeakTrace.
39
40
41
42perl v5.28.0                      2017-06-17        Test::LeakTrace::Script(3)
Impressum