http://www.perlmonks.org?node_id=962537


in reply to Active STDIN for user typed filepath

Works fine for me. It's not in Perl, it's in the shell. I've been doing this with Windows since Win95. Edit your registry and add the following:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor] "CompletionChar"=dword:00000009 "EnableExtensions"=dword:00000001 "PathCompletionChar"=dword:00000009

CompletionChar refers to a file. PathCompletionChar refers to a path (duh...). 9 is the ASCII code for <tab>. Change as you like. Enabling Extensions gives you some additional shell functionality. It is limited compared to bash, etc., but the shell can be made to be bearable.

You can save that block of text to a file with a .reg extension and just run it. If you have admin rights on your box, it will update the registry. Then run this and see if it works.

perl -e "$x = <STDIN>; print $x"

Press tab at the command prompt and it will cycle through files and paths.

--marmot