in reply to Re^4: How to run a perl program from the Windows CMD?
in thread How to run a perl program from the Windows CMD?

IT WORKED! I am so happy! Thank you and thanks to everyone who were so kind to help me! I didn't know %PATH% wanted only folders! I removed the perl.exe ending and when I ran perl -v in the CMD I got this:
Copyright 1987-2012, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using "man perl" or "perldoc perl". If you have access to + the Internet, point your browser at http://www.perl.org/, the Perl Home Pa +ge.
Then I ran this command  perl test.pl And it output "Hello World" rather than opening the file! Thank you soo much everyone!