Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.984.076 Times

Config::General::Match 0.05

Company: Michael Graham
Date Added: August 29, 2013  |  Visits: 229

Config::General::Match

Report Broken Link
Printer Friendly Version


Product Homepage
Download (16 downloads)

Config::General::Match is a Perl module that extends Config::General by providing support for configuration sections that match only for a particular file or path or URL.<br /><br />Typically you would use this to support the Apache-style conditional blocks, for instance:<br /><br /> < FilesMatch .jpg$ ><br /> # ... some configuration ...<br /> < /FilesMatch ><br /><br /> < Location /users ><br /> # ... some configuration ...<br /> < /Location ><br /><br /> < LocationMatch .html$ ><br /> # ... some configuration ...<br /> < /LocationMatch ><br /><br />To read the configuration use $conf->getall_matching instead of $conf->getall:<br /><br /> my $conf = Config::General::Match->new(...);<br /> my %config = $conf- >getall_matching('/users/joe/index.html');<br /> my %other_config = $conf- >getall_matching('/images/banner.jpg');<br /><br />SYNOPSIS<br /><br /> use Config::General::Match;<br /><br /> my $config_text = '<br /><br /> < Location /users ><br /> title = "User Area"<br /> < /Location ><br /><br /> < LocationMatch .*(jpg|gif|png)$ ><br /> image_file = 1<br /> < /Location ><br /><br /> ';<br /><br /><br /> my $conf = Config::General::Match- >new(<br /> -String = > $config_text,<br /> -MatchSections = > [<br /> {<br /> -Name = > 'Location',<br /> -MatchType = > 'path',<br /> },<br /> {<br /> -Name = > 'LocationMatch',<br /> -MatchType = > 'regex',<br /> },<br /> ],<br /> );<br /><br /> my %config = $conf- >getall_matching('/users/~mary/index.html');<br /> use Data::Dumper;<br /> print Dumper(%config);<br /> $VAR1 = {<br /> 'title' = > 'User Area',<br /> 'image_file' = > undef,<br /> };<br /><br /> my %config = $conf- >getall_matching('/users/~biff/images/flaming_logo.gif');<br /> print Dumper(%config);<br /> $VAR1 = {<br /> 'title' = > 'User Area',<br /> 'image_file' = > 1,<br /> };

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Area Config Config G Config General Config Text Configgeneralmatch Configuration Dumperconfig Filesmatch General General Match Gtnew Image File Jpg Gif Png Location Locationmatch Match Matchtype Print String Support Title User Users
Users rating: 0/10

License: Freeware Size: 20.48 KB
CONFIG::GENERAL::MATCH RELATED
Graphics Viewers  -  Classic PDF Reader for Windows 10 1.01
Windows 10 is great, but if you want to run two instances of a modern PDF Reader app at the same time or read two PDFs side by side, but it's only possible to view one at a time using the Reader apps. You can switch between two PDFs open in the...
3.52 MB  
Multimedia & Graphics  -  Universal Viewer 5.5.2
Universal Viewer is an advanced file viewer which supports a wide range of file formats: · Text/ Binary/ Hex/ Unicode: all files, with unlimited file size (even 4Gb sizes are allowed); · RTF/UTF-8: RTF and UTF-8 encoded texts; · Image: all...
 
Multimedia & Graphics  -  PC Screen Capture 2.3
PC Screen Capture is one free powerful, lightweight, full-featured screen capture tool for Windows platform, It allows you to take screenshots from any part of your screen in four ways, you can capture full desktop, active window, selected area...
1.29 MB  
Libraries  -  OpenInteract2::Config::Initializer 1.99_06
OpenInteract2::Config::Initializer is a Perl module for observable configuration initialization events. SYNOPSIS # Add an initializer in your package.conf name mypackage version 1.10 ... config_watcher OpenInteract2::MyInitializerSpops...
931.84 KB  
Multimedia & Graphics  -  ZoomMagic 3.01
ZoomMagic is a powerful tool to magnify any portion of your screen, measure distances or capture a screen area. Targeted users are: designers and developers on the hunt for those lost pixels .. or in the need for a fast screencapture, users with...
2.03 MB  
Multimedia & Graphics  -  Free-Ocr.Net 1.1
Free-Ocr.Net is a handy and reliable utility designed to extract text from images. You can use this tool to extract text from any image you supply. Just choose your image files JPG, GIF, PNG, BMP and the application will instantly recognize the...
 
Graphics Viewers  -  PPSee 1.28
PPSee is the template-based image internet gallery maker and the image viewer. Image viewer features: - logical image rotation (initialized from EXIF) - series renaming - slide show - file removing to multilevel Trash Bin - there is a 'read...
 
Libraries  -  DOCSIS Config .3
DOCSIS Config provides a PHP library to encode binary configuration files for DOCSIS cable modems..
34.82 KB  
Libraries  -  DBIx::Wrapper::Config 0.01
DBIx::Wrapper::Config Perl module allows the use of a configuration file in XML specifying information required to connect to databases using DBIx::Wrapper. This way, your database connection specifications can be kept in one place. Each "db"...
3.07 KB  
Libraries  -  Config::Abstract 0.13
Config::Abstract is a Perl extension for abstracting configuration files. SYNOPSIS use Config::Abstract; my $ini = new Config::Abstract(testdata.pl); Config::Abstract is the base class for a number of other classes created to facilitate use...
8.19 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Linux Software  -  SLAX 6.0+
Slax is a modern, portable, small and fast Linux operating system with a modular approach and outstanding design. Despite its small size, Slax provides a wide collection of pre-installed software for daily use, including a well organized graphical...
190 KB  
Linux Software  -  GTK+ 2.5
GTK+, which stands for the GIMP Toolkit, is a library for creating graphical user interfaces for the X Window System. It is designed to be small, efficient, and flexible. GTK+ is written in C with a very object-oriented approach. Language bindings...
60 MB  
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB