summaryrefslogtreecommitdiff
path: root/lib/Test/Utils.pm
blob: 1d00f90e8cdc4fe77e9741c2b8e91960aace14b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package Test::Utils;

use 5.004;

use strict;
require Exporter;
use vars qw($VERSION @EXPORT @EXPORT_TAGS @ISA);

$VERSION = '0.02';

@ISA = qw(Exporter);
@EXPORT = qw( my_print print );
                


# Special print function to guard against $\ and -l munging.
sub my_print (*@) {
    my($fh, @args) = @_;

    return 1 if $^C;

    local $\;
    print $fh @args;
}

sub print { die "DON'T USE PRINT!  Use _print instead" }

1;