Before starting to write my script designed to make filename changing
easier I'd like to ask how to create an editable command line inside a
perl script?

ksh93 and earlier versions does this on user input by default.  At
least a primitive amount of editing is possible.

The kind of situation this script is designed for is like this:

We have a number of files already named with names that don't lend
themselves to mass renaming.  That is, no recurring stings or the
like.  Except maybe the extension and then maybe not all of them.

In this situation its pretty much necessay to process each file
individually by editing parts of its name or replaceing parts etc.

I'd like to have perl generate a globbed list for me, then present
each list memember on an editable command line where I'm allowed
either vi or emacs like line editing to process the given file.

When I hit enter, the current one is renamed seamlessly and the next
one presented.

My skill level isn't very high but I think I can handle the pre
processing and post processing ok.  What I need help with is creating
a line editor inside my script.

Can any one offer an outline scheme for something like that?


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to