New module for renaming files within an editor

From: Bob Heckel (gg2.20.bheckel_at_spamgourmet.com)
Date: 10/28/04

  • Next message: Robert Harker: "Problem with MIME-tools 5.414 not finding encode_qp"
    Date: 27 Oct 2004 17:53:10 -0700
    
    

    I have developed a utility that I'd like to add to CPAN. As far as I
    can tell the functionality does not exist already.

    I've never contributed to CPAN before so any comments would be
    welcome, especially regarding namespaces, etc. Thanks.

    Here's the documentation:

    =head1 NAME

    Renamer - Perl extension for performing interactive filename changes
              from within an editor.

    =head1 SYNOPSIS

      use Renamer;

      InteractiveRename();

      Recognizes switches:
        -d debug mode
        -v verbose mode

      E.g.
        $ cat mytest.pl
        #!/usr/bin/perl

        use strict;
        use warnings;
        use Renamer;

        # Rename any, all or no files in a directory passed in as @ARGV.
        InteractiveRename();

        $ mytest.pl -dv ~/mydir

    =head1 DESCRIPTION

    Interactive file renamer allows filename changes from within a user's
    favorite editor. Most useful when complicated or one-time repetitive
    changes to a directory must be made but programmatic solutions are
    probably not worth the time to implement. Ignores subdirectories, if
    any.

    =head2 EXPORT

    None by default.

    =head1 SEE ALSO

    Perl's rename function.

    =head1 AUTHOR

    Robert S. Heckel Jr., E<lt>gg2.20.bheckel@spamgourmet.com<gt>

    =head1 COPYRIGHT AND LICENSE

    Copyright (C) 2004 by Robert S. Heckel Jr.

    This library is free software; you can redistribute it and/or modify
    it under the same terms as Perl itself, either Perl version 5.8.2 or,
    at your option, any later version of Perl 5 you may have available.

    =cut


  • Next message: Robert Harker: "Problem with MIME-tools 5.414 not finding encode_qp"

    Relevant Pages

    • [RFC] Apache::Session::Memcached - new module proposal
      ... cache daemon) for Apache::Session storage ... =head1 SYNOPSIS ... This module provides a way to use Cache::Memcached (memcached Perl API) as ...
      (comp.lang.perl.modules)
    • Re: Help -- Code attached - db2buildts.pl (0/1)
      ... >script into perl. ... >resolve an embedded variable. ... >to approach this in perl. ... =head1 SYNOPSIS ...
      (comp.lang.perl.misc)
    • Re: bytes.pm problem
      ... > You can if you install the module I mentioned; what needed to be done in my ... perl how to handle characters with the high-order bits set. ... =head1 SYNOPSIS ... pragma and must be used at compile time we can't simply wrap it in ...
      (comp.lang.perl.modules)