Scenario: You would like to double click and execute .pl perl script files.
Run the following in Windows command prompt:
assoc .pl=PerlScript ftype PerlScript=C:\Perl64\bin\perl.exe "%1" %* set PATHEXT=%PATHEXT%;.PL
To allow IO redirection to work properly, you need to import the following Registry key:
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer] "InheritConsoleHandles"=dword:00000001
This also talks about how to add a drop handler.
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.