1 |
cvsjoko |
1.1 |
################################# |
2 |
|
|
# |
3 |
joko |
1.15 |
# $Id: libp.pm,v 1.14 2003/02/09 04:49:09 joko Exp $ |
4 |
cvsjoko |
1.2 |
# |
5 |
|
|
# $Log: libp.pm,v $ |
6 |
joko |
1.15 |
# Revision 1.14 2003/02/09 04:49:09 joko |
7 |
|
|
# - purged lots of code and refactored into other modules |
8 |
|
|
# - sorry! |
9 |
|
|
# |
10 |
joko |
1.14 |
# Revision 1.13 2002/12/23 04:25:13 joko |
11 |
|
|
# + sub bool2status |
12 |
|
|
# |
13 |
joko |
1.13 |
# Revision 1.12 2002/12/22 14:15:02 joko |
14 |
|
|
# + sub mkObject |
15 |
|
|
# |
16 |
joko |
1.12 |
# Revision 1.11 2002/12/19 16:27:17 joko |
17 |
|
|
# +- renamed 'cmd' to 'run_cmd' |
18 |
|
|
# |
19 |
joko |
1.11 |
# Revision 1.10 2002/12/19 01:05:35 joko |
20 |
|
|
# + sub today |
21 |
|
|
# |
22 |
joko |
1.10 |
# Revision 1.9 2002/12/05 13:54:00 joko |
23 |
|
|
# + fix: let 'deep_copy' print its message out (instead of die) |
24 |
|
|
# |
25 |
joko |
1.9 |
# Revision 1.8 2002/12/01 22:11:35 joko |
26 |
|
|
# + sub cmd |
27 |
|
|
# + sub run_cmds |
28 |
|
|
# |
29 |
joko |
1.8 |
# Revision 1.7 2002/11/29 04:44:53 joko |
30 |
|
|
# - sub array_getRelations |
31 |
|
|
# + sub getNewPerlObjectByPkgName |
32 |
|
|
# |
33 |
joko |
1.7 |
# Revision 1.6 2002/11/17 07:18:59 joko |
34 |
|
|
# + sub deep_copy |
35 |
|
|
# |
36 |
joko |
1.6 |
# Revision 1.5 2002/10/27 18:34:28 joko |
37 |
|
|
# + sub now |
38 |
|
|
# |
39 |
joko |
1.5 |
# Revision 1.4 2002/08/16 19:06:39 cvsjoko |
40 |
|
|
# + sub getDirList |
41 |
|
|
# |
42 |
cvsjoko |
1.4 |
# Revision 1.3 2002/07/19 18:13:50 cvsjoko |
43 |
|
|
# no message |
44 |
|
|
# |
45 |
cvsjoko |
1.3 |
# Revision 1.2 2002/06/27 02:14:22 cvsjoko |
46 |
|
|
# + stripHtml stripSpaces stripNewLines toReal |
47 |
|
|
# |
48 |
cvsjoko |
1.2 |
# Revision 1.1 2002/06/24 14:49:59 cvsjoko |
49 |
|
|
# + new |
50 |
cvsjoko |
1.1 |
# |
51 |
|
|
# |
52 |
|
|
################################# |
53 |
|
|
|
54 |
|
|
package libp; |
55 |
|
|
|
56 |
joko |
1.7 |
use strict; |
57 |
|
|
use warnings; |
58 |
|
|
|
59 |
cvsjoko |
1.1 |
require Exporter; |
60 |
joko |
1.7 |
our @ISA = qw( Exporter ); |
61 |
|
|
our @EXPORT_OK = qw( |
62 |
cvsjoko |
1.3 |
ParseDate UnixDate |
63 |
|
|
array_getDifference |
64 |
joko |
1.13 |
bool2status |
65 |
cvsjoko |
1.1 |
); |
66 |
|
|
|
67 |
|
|
$main::TZ = 'GMT'; |
68 |
|
|
use Date::Manip; |
69 |
cvsjoko |
1.2 |
|
70 |
|
|
|
71 |
|
|
######################################## |
72 |
|
|
|
73 |
cvsjoko |
1.4 |
|
74 |
|
|
|
75 |
|
|
|
76 |
|
|
|
77 |
|
|
# ============================================= |
78 |
|
|
|
79 |
joko |
1.13 |
|
80 |
|
|
sub bool2status { |
81 |
|
|
my $bool = shift; |
82 |
|
|
return ($bool ? 'ok' : 'failed'); |
83 |
joko |
1.5 |
} |
84 |
cvsjoko |
1.1 |
|
85 |
|
|
1; |