1Test::LeakTrace::ScriptU(s3e)r Contributed Perl DocumentaTteisotn::LeakTrace::Script(3)
2
3
4
6 Test::LeakTrace::Script - A LeakTrace interface for whole scripts
7
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
17 This is a interface to "Test::LeakTrace" for whole scripts.
18
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
28 TEST_LEAKTRACE=mode
29 -simple (DEFAULT)
30
31 -sv_dump
32
33 -lines
34
35 -verbose
36
38 Test::LeakTrace.
39
40
41
42perl v5.34.0 2022-01-21 Test::LeakTrace::Script(3)