File::Searcher
Details
| Size: | 8K |
| Last Update: | 2008-06-08 03:02:19 |
| Version: | 0.91 |
| OS Support: | Linux |
| License/Program Type: | Perl Artistic License |
| Publisher: | Adam Stubbs |
| Price: | $0.00 |
Description:
File::Searcher 0.91 is libraries software developed by Adam Stubbs.
File::Searcher is a searches for files and performs search/replacements on matching files.
SYNOPSIS
use File::Searcher;
my $search = File::Searcher->new('.cgi');
$search->add_expression(name=>'street',
search=>'1234 Easy St.',
replace=>'456 Hard Way',
options=>'i');
$search->add_expression(name=>'department',
search=>'(Dept.|Department)(s+)(d+)',
replace=>'$1$2$3',
options=>'im');
$search->add_expression(name=>'place',
search=>'Portland, OR(.?)97212',
replace=>'Vicksburg, MI${1}49097',
options=>'is');
$search->start;
$search->interactive; SEE File::Searcher::Interactive
@files_matched = $search->files_matched;
print "Files Matchedn";
print "t" . join("nt", @files_matched) . "n";
print "Total Files:t" . $search->file_cnt . "n";
print "Directories:t" . $search->dir_cnt . "n";
my @files_replaced = $search->expression('street')->files_replaced;
my @files_replaced = $search->expression($expression)->files_replaced;
my %matches = $search->expression('street')->matches;
my %replacements = $search->expression('street')->replacements;
File::Searcher allows for the traversing of a directory tree for files matching a Perl regular expression. When a match is found, the statistics are stored and if the file is a text file a series of searches and replacements can be performed. File::Searcher has options that allow for backing-up / archiving files and has OO access to reporting and statistics of matches and replacements.
Requirements:
Perl
File::Searcher 0.91 supports english interface languages and works with Linux.
Downloading File::Searcher 0.91 will take several seconds if you use fast ADSL connection.
0 comments
Add to
File::Searcher Version History
Related Software
|
|
From category: Assembler-Tools |
| avrLab 0.18 is assembler tools software developed by rman. avrLab is an IDE (Integrated Devlopment Environment) for the AVR® family of microcontroller from Atmel® Currently it features an advance... |
|
|
From category: Compilers |
| ccache 2.4 is compilers software developed by Andrew Tridgell. ccache is a compiler cache. It acts as a caching pre-processor to C/C++ compilers, using the -E compiler switch and a hash to detect w... |
|
|
From category: Libraries |
| Archive::Ar 1.13b is libraries software developed by Jay Bonci. Archive::Ar is a Perl interface for manipulating ar archives. SYNOPSIS use Archive::Ar; my $ar =... |
|
|
From category: Libraries |
| gjrand is a programmer\'s library for pseudo-random numbers.... |
|
|
From category: Libraries |
| FFmpeg::Stream::Audio 0.03 is libraries software developed by Allen Day. FFmpeg::Stream::Audio is an audio stream from a (multi)media stream group. SYNOPSIS $ff = FFmpeg->new();... |
|
|
From category: Version-Control |
| cc2cvs 1.3 is version control software developed by Frederick Dean. cc2cvs exports ClearCase version control information to the CVS format. cc2cvs 1.3 supports english interface languages and works... |
|
|
From category: Libraries |
| DBIx::Migration::Directories 0.05 is libraries software developed by Tyler MacDonald. DBIx::Migration::Directories is a Perl module to install/remove/upgrade/downgrade SQL schemas. SYNOPSIS\... |
|
|
From category: Libraries |
| Archive::Any::Create 0.02 is libraries software developed by Tatsuhiko Miyagawa. Archive::Any::Create is an abstract API to create archives (tar.gz and zip). SYNOPSIS use Archive::A... |
|
|
From category: Libraries |
| Data::Faker::StreetAddress 0.07 is libraries software developed by Jason Kohles. Data::Faker::StreetAddress is a Data::Faker plugin. DATA PROVIDERS us_zip_code Return a random... |
|
|
From category: Libraries |
| CGI::WeT::Modules::Basic 0.71 is libraries software developed by CGI::WeT Team. CGI::WeT::Modules::Basic is a basic rendering engine extensions. SYNOPSIS use CGI::WeT::Modules::Ba... |
|
|
From category: Libraries |
| Audio::OSS 0.0501 is libraries software developed by David Huggins-Daines. Audio::OSS is a pure-perl interface to OSS (open sound system) audio devices. SYNOPSIS use Audio::OSS qw(:... |
|
|
From category: Libraries |
| Class::Meta::Declare 0.04 is libraries software developed by Curtis Poe. Class::Meta::Declare is a Perl module deprecated in favor of Class::Meta::Express. SYNOPSIS This was a first a... |
|
|
From category: Libraries |
| ParseTree is a C extension that extracts the parse tree for an entire class or method and returns it as a s-expression.... |
|
|
From category: Libraries |
| Aranea framework 1.0.3 is libraries software developed by Aranea Team. Aranea is an Open Source Java Hierarchical Model-View-Controller Web Framework that provides a common simple approach to build... |
|
|
From category: Libraries |
| DateTime::Format::Excel 0.2901 is libraries software developed by Iain Truskett. DateTime::Format::Excel is a Perl module that can convert between DateTime and Excel dates. SYNOPSIS... |
Leave a comment