/[cvs]/nfo/perl/libs/libp.pm
ViewVC logotype

Diff of /nfo/perl/libs/libp.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by joko, Thu Dec 19 01:05:35 2002 UTC revision 1.11 by joko, Thu Dec 19 16:27:17 2002 UTC
# Line 3  Line 3 
3  #  $Id$  #  $Id$
4  #  #
5  #  $Log$  #  $Log$
6    #  Revision 1.11  2002/12/19 16:27:17  joko
7    #  +- renamed 'cmd' to 'run_cmd'
8    #
9  #  Revision 1.10  2002/12/19 01:05:35  joko  #  Revision 1.10  2002/12/19 01:05:35  joko
10  #  + sub today  #  + sub today
11  #  #
# Line 50  our @EXPORT_OK = qw( Line 53  our @EXPORT_OK = qw(
53      md5 md5_hex md5_base64      md5 md5_hex md5_base64
54      ParseDate UnixDate      ParseDate UnixDate
55      strftime      strftime
     stripHtml stripSpaces stripNewLines toReal trim  
56      croak      croak
57    
58        stripHtml stripSpaces stripNewLines toReal trim
59      array_getDifference      array_getDifference
60      getDirList      getDirList
61      now      now today
62      deep_copy      deep_copy
63      getNewPerlObjectByPkgName      getNewPerlObjectByPkgName
64      cmd      run_cmd run_cmds
     run_cmds  
     today  
65  );  );
66    
67  use Data::Dumper;  use Data::Dumper;
# Line 236  sub getNewPerlObjectByPkgName { Line 238  sub getNewPerlObjectByPkgName {
238    return $pkgname->new($args);    return $pkgname->new($args);
239  }  }
240    
241  sub cmd ($) {  sub run_cmd {
242    my $cmd = shift;    my $cmd = shift;
243    $cmd = 'perl ' . $cmd;    $cmd = 'perl ' . $cmd;
244    my $sep = "-" x 90;    my $sep = "-" x 90;
# Line 249  sub cmd ($) { Line 251  sub cmd ($) {
251    
252  sub run_cmds {  sub run_cmds {
253    foreach (@_) {    foreach (@_) {
254      cmd($_);      run_cmd($_);
255    }    }
256  }  }
257    

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed