diff options
Diffstat (limited to 'debian/perl-framework/t/htdocs/modules/rewrite/db.pl.PL')
-rw-r--r-- | debian/perl-framework/t/htdocs/modules/rewrite/db.pl.PL | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/debian/perl-framework/t/htdocs/modules/rewrite/db.pl.PL b/debian/perl-framework/t/htdocs/modules/rewrite/db.pl.PL new file mode 100644 index 0000000..a897a8a --- /dev/null +++ b/debian/perl-framework/t/htdocs/modules/rewrite/db.pl.PL @@ -0,0 +1,10 @@ + +($txtmap, $dbmmap) = @ARGV; +open(TXT, "<$txtmap"); +dbmopen(%DB, $dbmmap, 0644); +while (<TXT>) { + next if (m|^s*#.*| or m|^s*$|); + $DB{$1} = $2 if (m|^\s*(\S+)\s+(\S+)$|); +} +dbmclose(%DB); +close(TXT) |