/[cvs]/nfo/perl/scripts/umltools/ConfigPatcher/Config.pm
ViewVC logotype

Contents of /nfo/perl/scripts/umltools/ConfigPatcher/Config.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (vendor branch)
Tue Oct 22 02:25:56 2002 UTC (21 years, 6 months ago) by joko
Branch: nfo, MAIN
CVS Tags: v000, HEAD
Changes since 1.1: +0 -0 lines
+ initial import


1 package ConfigPatcher::Config;
2
3 use strict;
4 use warnings;
5
6 our %cfg_patcher;
7 sub readLine {
8 my $line = shift;
9 my @arr = split(/[ ]+/, $line);
10 #print $arr[0], ";", $arr[1], "\n";
11 $cfg_patcher{$arr[0]} = $arr[1];
12 }
13
14 sub readConfig {
15 my $patchlist = shift;
16 open(FH, '<' . $patchlist);
17 while(<FH>) {
18 chomp;
19 next if m/^$/;
20 next if m/^#/;
21 readLine($_);
22 }
23 close(FH);
24 }
25
26 1;
27

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