Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    File::Searcher::Interactive 0.9

    Download button

    No screenshots available
    Downloads: 344  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Adam Stubbs | More programs
    Perl Artistic License / FREE
    December 7th, 2007, 22:50 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    File::Searcher::Interactive description

    File::Searcher::Interactive is a Perl module that searches for files and performs search/replacements on matching files.

    File::Searcher::Interactive is a Perl module that searches for files and performs search/replacements on matching files, uses terminal to make the searches interactive.

    SYNOPSIS

    use File::Searcher::Interactive;
    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->interactive;
    # $search->start; SEE File::Searcher
    @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::Interactive is a sub-class of File::Searcher which 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::Interactive uses the terminal to prompt the user for interactive replacements.

    Requirements:

    · Perl



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    interactive searches | file search | Perl module | interactive | search | searcher

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM