launch your command prompt with tapping cmd in your windows search move to the specified directory cd c:perlscripts run your script with: perl hello.pl