bin/ptee

filter: Statementstmt 100% 7 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 9 / 9 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Tee.pm ↑ Summary
1 #!/usr/bin/perl
2 #
3 # This file is part of Tee
4 #
5 # This software is Copyright (c) 2006 by David Golden.
6 #
7 # This is free software, licensed under:
8 #
9 # The Apache License, Version 2.0, January 2004
10 #
11 package
12 ptee;
13 # ABSTRACT: emulate the GNU tee program with Perl
14  
15 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 4 ▶use Tee::App qw/run/;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 4 run;
18  
19  
20  
21 =pod
22  
23 =head1 NAME
24  
25 ptee - emulate the GNU tee program with Perl
26  
27 =head1 VERSION
28  
29 version 0.14
30  
31 =head1 SYNOPSIS
32  
33 ptee [OPTIONS]... [FILENAMES]...
34  
35 OPTIONS:
36
37 --append or -a
38 append to file(s) rather than overwrite
39  
40 --help or -h
41 give usage information
42  
43 --version or -V
44 print the version number of this program
45  
46 =head1 DESCRIPTION
47  
48 C<ptee> is a pure Perl emulation of the standard GNU tool C<tee> and is
49 designed to be a platform independent replacement for operating systems without
50 a native C<tee> program.
51  
52 It passes input received on STDIN through to STDOUT while also writing a copy
53 of the input to any files provided as arguments. By default, files will be
54 overwritten, but this behavior may be altered with the C<--append> option.
55  
56 Unlike C<tee>, C<ptee> does not support ignoring interrupts, as signal handling
57 is not sufficiently portable.
58  
59 =head1 BUGS
60  
61 Please report any bugs or feature using the CPAN Request Tracker.
62 Bugs can be submitted through the web interface at
63 L<http://rt.cpan.org/Dist/Display.html?Queue=Tee>
64  
65 When submitting a bug or request, please include a test-file or a patch to an
66 existing test-file that illustrates the bug or desired feature.
67  
68 =head1 AUTHOR
69  
70 David Golden <dagolden@cpan.org>
71  
72 =head1 COPYRIGHT AND LICENSE
73  
74 This software is Copyright (c) 2006 by David Golden.
75  
76 This is free software, licensed under:
77  
78 The Apache License, Version 2.0, January 2004
79  
80 =cut
81  
82  
83 __END__
« blib/lib/Tee.pm ↑ Summary