pikov22 has asked for the wisdom of the Perl Monks concerning the following question:

I'm a novice perl user who has Active Perl installed on my Windows 7 computer.

I have a directory full of files with names like text134.txt and the first line of each contains what I would like to change the filename to. For example, text167.txt consists of these seven lines:
Canon Camera

Doc copy-
1 set camera to M
2 press FUNC SET
3 select Digital Macro (tulip w/D)
4 press FUNC SET

I would like to change the file's name to canon camera.txt or canon_camera.txt (the case of the initial letter is immaterial to me)

Would some kind soul write a simple script for me? Thanks.

Replies are listed 'Best First'.
Re: Changing filenames
by ww (Archbishop) on Apr 26, 2011 at 02:16 UTC
    Both previous answers allude to this (and offer some points supporting it): I'll make it explicit.

    PM is a place for learning; not a place to come for free scripts. We'ld love to help you learn, if you wish to do so and put some effort into it.

    To that end, you might want to start by reading The Perl Monks Guide to the Monastery and at least some of the offerings in PerlMonks FAQ.

Re: Changing filenames
by Anonymous Monk on Apr 26, 2011 at 00:43 UTC
    A reply falls below the community's threshold of quality. You may see it by logging in.