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

Please help!

Please read http://en.wikipedia.org/wiki/Directory_(file_systems)#The_folder_metaphor

C:\xampp\perl\bin\perl.exe is a file and %PATH% wants folders

See also vienv - Edit local environment variables on Win32, CleanPath , SetEnviron.bat

  • Comment on Re^4: How to run a perl program from the Windows CMD?

Replies are listed 'Best First'.
Re^5: How to run a perl program from the Windows CMD?
by Stefany (Acolyte) on Mar 08, 2014 at 14:26 UTC
    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!