I want to prompt the user for the path of a file but I would like to give him a default editable value, for example I give him C:/Data/toload.txt as a default value(...)just changing the name of the file for example, without having to re-type the whole thing...
For that you can use something like
or even just ask for the file name and append it to the path.print 'type your path [c:\data\toload.txt]: '; chomp (my $inputFile = <STDIN>); $inputFile ||= 'c:\data\toload.txt';
and he can modify it directly,
Well, that might need some Win32::Console-fu. The question is whether this is going to save any time; the user will still need to backspace it and type in something. Tab completion might help here, but I've no idea what gives you that on Win32.
Software speaks in tongues of man; I debug, therefore I code.
In reply to Re: Simulate "editable" keyboard input
by Erez
in thread Simulate "editable" keyboard input
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |