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

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

Serving Software Downloads in 956 Categories, Downloaded 50.133.497 Times

Config::General::Match 0.05

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

Config::General::Match

Report Broken Link
Printer Friendly Version


Product Homepage
Download (38 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
USER REVIEWS
More Reviews or Write Review


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  
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  -  Simple Config 1.1.1
Simple Config library supports configuration files consisting of simple name-value pairs, similar to the old Windows INI files. A config file can be loaded into memory, queried by item name, modified, and written back out to a file. Configuration...
23.55 KB  
Libraries  -  CGI::Application::Plugin::Authentication::Driver::Dummy 0.12
CGI::Application::Plugin::Authentication::Driver::Dummy is a dummy authentication driver which lets anyone authenticate regardless of the password they provide SYNOPSIS use base qw(CGI::Application); use...
48.13 KB  
Utilities  -  OCRE 0.028
OCRE application is an optical character recognition (OCR) system that reads an image file and writes ASCII or Unicode characters. Languages: English, French, Polish, Spanish Installation: unpack the file ...tgz (tar xzvf ...) # vi...
440.32 KB  
Utilities  -  XML From Plain Text 0.03
XML From Plain Text (xfpt) is a program that reads a file of plain text that contains relatively simple markup, and outputs an XML file. It is intended to simplify the management of XML data. The project is not a program that attempts to turn a...
133.12 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
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  
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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB