anwoke8204 wrote:I downloaded and extracted and ran the setup xampp with perl, then restarted my server, but can't figure out how to run perl, when I go to the command prompt and type in perl -v to get my version number I get unreconized command? any ideas as to what I am doing wrong
Include the full path to perl in your command if you are not running the command console in the
xampp\perl\bin directory.
Example:
c:\Documents and Settings\You>c:\xampp\perl\bin\perl -v
If you cd to c:\xampp\perl\bin then it will look like this:
c:\Documents and Settings\You>cd to c:\xampp\perl\bin
Press enter
c:\xampp\perl\bin>perl -v
Should return something like this
- Code: Select all
c:\xampp\perl\bin>perl -v
This is perl, v5.8.8 built for MSWin32-x86-multi-thread
(with 25 registered patches, see perl -V for more detail)
Copyright 1987-2006, Larry Wall
Binary build 817 [257965] provided by ActiveState http://www.ActiveState.com
Built Mar 20 2006 17:54:25
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 kit.
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 Page.
C:\xampp\perl\bin>
perl -V (uppercase V) will give details of the patches mentioned above.
perl -h will give a list of perl switches.
This path to perl has also to added to the top (first line) of each perl script (.cgi file) also known as the shebang.
In the path example above the shebang would look like this:
#!"C:\xampp\perl\bin\perl.exe"