/[cvs]/nfo/perl/scripts/shortcuts/rap.pl
ViewVC logotype

Contents of /nfo/perl/scripts/shortcuts/rap.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations)
Tue Feb 18 15:30:52 2003 UTC (21 years, 4 months ago) by joko
Branch: MAIN
File MIME type: text/plain
+ initial commit

1 #!/usr/bin/perl
2
3 ## -------------------------------------------------------------------------
4 ## $Id: Config.pm,v 1.19 2003/02/14 12:37:04 joko Exp $
5 ## -------------------------------------------------------------------------
6 ## $Log: Config.pm,v $
7 ## -------------------------------------------------------------------------
8
9
10 use strict;
11 use warnings;
12
13 BEGIN {
14 use FindBin qw($Bin);
15 use lib "$Bin/../../libs";
16 }
17
18
19 # ------------------------------------ main ------------
20 use Data::Dumper;
21 use Data::Rap;
22
23 sub find_rules {
24 return '../etc/rap.xml';
25 }
26
27 sub main {
28 my $argString = shift;
29 my $rulesfile = find_rules();
30 my $rap = Data::Rap->new( filename => $rulesfile, target => $argString );
31 $rap->start();
32 }
33
34 my @args = @ARGV;
35 @args = () if not @args;
36 main(join(' ', @args));
37
38
39 1;
40 __END__

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