line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#=============================================================================== |
2
|
|
|
|
|
|
|
# |
3
|
|
|
|
|
|
|
# FILE: Util.pm |
4
|
|
|
|
|
|
|
# |
5
|
|
|
|
|
|
|
# DESCRIPTION: NetSDS utilities |
6
|
|
|
|
|
|
|
# |
7
|
|
|
|
|
|
|
# AUTHOR: Michael Bochkaryov (Rattler), |
8
|
|
|
|
|
|
|
# COMPANY: Net.Style |
9
|
|
|
|
|
|
|
# CREATED: 24.07.2009 09:38:14 UTC |
10
|
|
|
|
|
|
|
#=============================================================================== |
11
|
|
|
|
|
|
|
=head1 NAME |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
NetSDS::Util - supplementary NetSDS packages |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 SYNOPSIS |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
use NetSDS::Util::Convert; |
18
|
|
|
|
|
|
|
use NetSDS::Util::String; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
my $trim_str = str_trim(" Some string with leading and trailing "); |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
C modules contains functions useful for everyday tasks. |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=over |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=item B - data format conversions |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=item B - processing date and time |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=item B - work with files and catalogs |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=item B - processing spreadsheet files |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=item B - miscelaneous routines |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=item B - text and binary strings processing |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=item B - data structures conversion |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=item B - transliteration |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=item B - work with data types |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=back |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=cut |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
package NetSDS::Util; |
52
|
|
|
|
|
|
|
|
53
|
2
|
|
|
2
|
|
21911
|
use 5.8.0; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
78
|
|
54
|
2
|
|
|
2
|
|
8
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
65
|
|
55
|
2
|
|
|
2
|
|
9
|
use warnings; |
|
2
|
|
|
|
|
16
|
|
|
2
|
|
|
|
|
68
|
|
56
|
|
|
|
|
|
|
|
57
|
2
|
|
|
2
|
|
905
|
use version; our $VERSION = "1.045"; |
|
2
|
|
|
|
|
2950
|
|
|
2
|
|
|
|
|
24
|
|
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
1; |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
__END__ |