| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=begin metadata |
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
Name: echo |
|
6
|
|
|
|
|
|
|
Description: echo arguments |
|
7
|
|
|
|
|
|
|
Author: Randy Yarger, randy.yarger@nextel.com |
|
8
|
|
|
|
|
|
|
License: perl |
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=end metadata |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=cut |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
package PerlPowerTools::echo; |
|
15
|
|
|
|
|
|
|
|
|
16
|
4
|
|
|
4
|
|
20510
|
use strict; |
|
|
4
|
|
|
|
|
7
|
|
|
|
4
|
|
|
|
|
6082
|
|
|
17
|
|
|
|
|
|
|
|
|
18
|
4
|
|
|
|
|
637175
|
our $VERSION = '1.3'; |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
# run if called directly, indirectly, directly par-packed, undirectly par-packed |
|
21
|
4
|
0
|
33
|
|
|
55
|
__PACKAGE__->run( @ARGV ) if !caller() || caller(0) =~ /^(PerlPowerTools::Packed|PAR)$/ || caller(1) eq 'PAR'; |
|
|
|
|
33
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub run { |
|
24
|
4
|
|
|
4
|
|
54
|
my ( $self, @args ) = @_; |
|
25
|
|
|
|
|
|
|
|
|
26
|
4
|
|
|
|
|
16
|
my $N = 1; |
|
27
|
4
|
100
|
100
|
|
|
22
|
if (@args && $args[0] eq '-n') { |
|
28
|
1
|
|
|
|
|
3
|
$N = 0; |
|
29
|
1
|
|
|
|
|
2
|
shift @args; |
|
30
|
|
|
|
|
|
|
} |
|
31
|
|
|
|
|
|
|
|
|
32
|
4
|
|
|
|
|
58
|
print join ' ', @args; |
|
33
|
4
|
100
|
|
|
|
50
|
print "\n" if $N == 1; |
|
34
|
|
|
|
|
|
|
|
|
35
|
4
|
|
|
|
|
|
exit 0; |
|
36
|
|
|
|
|
|
|
} |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
__END__ |