File: tee.pm

package info (click to toggle)
libfilter-perl 1.34-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 304 kB
  • ctags: 120
  • sloc: perl: 596; ansic: 193; makefile: 47
file content (50 lines) | stat: -rw-r--r-- 862 bytes parent folder | download | duplicates (5)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package Filter::tee ;

require 5.002;
require DynaLoader;
use strict;
use warnings;
use vars qw( @ISA $VERSION);
@ISA = qw(DynaLoader);
$VERSION = "1.02" ;

bootstrap Filter::tee ;

1;
__END__

=head1 NAME

Filter::tee - tee source filter

=head1 SYNOPSIS

    use Filter::tee 'filename' ;
    use Filter::tee '>filename' ;
    use Filter::tee '>>filename' ;

=head1 DESCRIPTION

This filter copies all text from the line after the C<use> in the
current source file to the file specified by the parameter
C<filename>.

By default and when the filename is prefixed with a '>' the output file
will be emptied first if it already exists.

If the output filename is prefixed with '>>' it will be opened for
appending.

This filter is useful as a debugging aid when developing other source
filters.

=head1 AUTHOR

Paul Marquess 

=head1 DATE

20th June 1995.

=cut