File: Tools.pm

package info (click to toggle)
libwww-mechanize-perl 2.03-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 988 kB
  • sloc: perl: 4,088; makefile: 6
file content (20 lines) | stat: -rw-r--r-- 318 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package Tools;

use base 'Exporter';

our @EXPORT_OK = qw( $canTMC memory_cycle_ok );
our @EXPORT    = @EXPORT_OK;

our $canTMC;

sub import {
    delete @ENV{ qw( http_proxy HTTP_PROXY PATH IFS CDPATH ENV BASH_ENV) };

    eval 'use Test::Memory::Cycle';
    $canTMC = !$@;

    Tools->export_to_level(1, @_);
}


1;