in reply to How to run a perl program from the Windows CMD?
- Right click 'My computer'
- Select 'Properties' from the drop down list.
- Select 'Advanced'/'Advanced system settings' (depending on OS version)
- Click 'Environment Variables.
- Add the path of perl.exe in 'System Variables'->'Path'.
- open cmd promt
- cd <your_path_where_perl_path_is_saved>
- In case your perl file is saved in D drive then, the type D: in cmd promt
- run the command perl <perl_file_name>