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.175.521 Times

String::Glob::Permute 0.01

Company: Michael Schilli
Date Added: June 21, 2013  |  Visits: 243

String::Glob::Permute

Report Broken Link
Printer Friendly Version


Product Homepage
Download (40 downloads)



The string_glob_permute() function provided by the String::Glob::Permute Perl module expands glob-like notations in text strings and returns all possible permutations.<br /><br />For example, to run a script on hosts host1, host2, and host3, you might write<br /><br /> @hosts = string_glob_permute( "host[1-3]" );<br /><br />and get a list of hosts back: ("host1", "host2", "host3").<br /><br />Ranges with gaps are also supported, just separate the blocks by commas:<br /><br /> @hosts = string_glob_permute( "host[1-3,5,9]" );<br /><br />will return ("host1", "host2", "host3", "host5", "host9").<br /><br />And, finally, using curly brackets and comma-separated lists of strings, as in<br /><br /> @hosts = string_glob_permute( "host{dev,stag,prod}" );<br /><br />you'll get permutations with each of the alternatives back: ("hostdev", "hoststag", "hostprod") back.<br /><br />All of the above can be combined, so<br /><br /> my @hosts = string_glob_permute( "host{dev,stag}[3-4]" );<br /><br />will result in the permutation ("hostdev3", "hoststag3", "hostdev4", "hoststag4").<br /><br />The patterns allow numerical ranges only [1-3], no string ranges like [a-z]. Pattern must not contain blanks.<br /><br />The function returns a list of string permutations on success and undef in case of an error. A warning is also issued if the pattern cannot be recognized.<br /><br />SYNOPSIS<br /><br /> use String::Glob::Permute qw( string_glob_permute );<br /><br /> my $pattern = "host{foo,bar,baz}[2-4]";<br /><br /> for my $host (string_glob_permute( $pattern )) {<br /> print "$hostn";<br /> }<br /><br /> # hostfoo2<br /> # hostbar2<br /> # hostbaz2<br /> # hostfoo3<br /> # hostbar3<br /> # hostbaz3<br /> # hostfoo4<br /> # hostbar4<br /> # hostbaz4

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Blanksthe Function Hosts Numerical Pattern Patterns Permutations Provided Quothost Quot Quothoststag Quotthe Ranges Returns String String Glob Permute Stringglobpermute Strings
Users rating: 0/10

License: Freeware Size: 10.24 KB
USER REVIEWS
More Reviews or Write Review


STRING::GLOB::PERMUTE RELATED
Networking  -  Safe Function Call for WordPress 1.1
Safely and easily call functions that may not be available (such as those provided by a plugin that gets deactivated).Assuming you had something like this in a template:If you deactivated the plugin that provided list_cities(), your site would...
10 KB  
File Management  -  Flexible directory walking 1.1
This function walks a directory tree starting at a specified root folder, and returns a list of all of the files (and optionally folders) that match our pattern(s).The standard match our tree function os.path.walk can be confusing, and is...
 
Science  -  SortByIPs 1.0
General-purpose machine-independent Perl functions and a sample MS-DOS/Windows batch file to efficiently sort arrays of strings by the numerical value of all embedded dotted-quad IPv4 addresses in each string
3.16 KB  
Development Tools  -  Pattern search method: deterministic iterative zero order algorithm 1.0
It's a deterministic iterative zero order algorithm that can be used to solve unconstrained optimization problem. It finds the relative minimum of a two variables function with a deterministic iterative zero order algorithm. Pattern search method...
10 KB  
Libraries  -  Perl::Critic::Config 1.061
Perl::Critic::Config is a Perl module to find and load Perl::Critic user-preferences. Perl::Critic::Config takes care of finding and processing user-preferences for Perl::Critic. The Config object defines which Policy modules will be loaded into...
245.76 KB  
Libraries  -  File::BSDGlob 0.94
File::BSDGlob is a Perl extension for BSD glob routine. SYNOPSIS use File::BSDGlob :glob; @list = glob(*.[ch]); $homedir = glob(~gnat, GLOB_TILDE | GLOB_ERR); if (GLOB_ERROR) { # an error occurred reading $homedir } ## override the core...
15.36 KB  
Communication  -  Antenna Pointing Loss Blocks 1.1
Communication signals can be attenuated at the receive antenna if there is a misalignment between the transmit and receive antenna. This can be either a static misalignment or a time varying misalignment, like when an antenna is mounted on a tower...
256 KB  
Development Tools  -  MIMO Toolbox 1.0
The MIMO Toolbox is a collection of Matlab functions and a GUI. Its purpose is to complement the Control Toolbox for Matlab with functions capable of handling the multivariable input-output scheme.The MIMO Toolbox was developed for Matlab 7.The...
307.2 KB  
Development Tools  -  Vectorized geodetic distance and azimuth on the WGS84 earth ellipsoid 1.0
In 1975, Vincenty published a rapidly converging algorithm for computing the distance between points on an ellipsoidal earth. The algorithm is precise to within a few millimeters. Since then, his algorithm has since seen significant implementation...
10 KB  
Programming  -  jsongrep for Linux 0.1.1
jsongrep is a command-line utility for extracting values from JSON documents. It supports shell-like globbing for property names, and emits the matched values separated by newlines. Examples: Let's start with a real-world...
10.24 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