in reply to Re: printing deletable text to stdout
in thread printing deletable text to stdout

You appear to be assuming that $file1 is eight characters long. Wouldn't print "Enter File Here: $file1", "\b" x length $file1; be preferable?

Also, the OP wanted the user to be able to compose his response by editing the default filename. That's not possible with this solution.

Replies are listed 'Best First'.
Re^3: printing deletable text to stdout
by kutsu (Priest) on Oct 05, 2004 at 13:32 UTC

    I knew there was an easier way to print multiple characters, but I don't do command line work much and as such couldn't remember it. It is possible with my solution, esp. if the "\b" x length $file was added, not to edit the default filename but to decide if one was entered or not and therefor have a default filename. Though there have been much better solutions suggested and I would recommend he use one of those.

    "Cogito cogito ergo cogito sum - I think that I think, therefore I think that I am." Ambrose Bierce