New to Perl on Windows. New to programming.


I've installed ActivePerl. What now?


Go to Start | Run. Enter 'CMD' in the Open field and press Enter. This will open up a DOS command prompt. At the prompt, type:

  C:\>perl -v

You should see version information for ActivePerl.

To evaluate perl code on the command line, you can do this:

  C:\>perl -e "print \"hello world\";"

Note: you must escape double quotes in the code when using -e.

To run a script:

  C:\>perl maintains the defacto standard resources for Perl developers:

What *not* to do:

"PerlScript" is not the same as "Perl script". "PerlScript" is a special version of ActivePerl for certain uses inside IIS servers. If you encounter references to "PerlScript" in the manuals, you can skip them until after you have mastered IIS setup.

PPM is not a Perl Editor. Skip PPM for now, and come back to it when you find you need to add additional features to ActivePerl.

OLE Browser is not a Perl Editor. OLE Browser was just an example of how to do something that isn't a good idea with today's internet. If your version of ActivePerl still has the icon for OLE Browser, you can ignore it and come back to it much, much later.

If you *are* looking for an editor / development environment for Perl, you should try ActiveState's Komodo:

Adding a User Environment Variable in Windows


How do I add a 'user' environment variable under Windows?

  1. Right-click 'My Computer' and select 'Properties'
  2. Click the 'Advanced' tab, then 'Environment Variables'. This opens
    the Environment Variables dialog.
  3. In the top 'User variables for ' pane, select 'PATH' and
    click 'Edit'. If there is no 'PATH' variable, click on 'New' to create
  4. Add this to the beginning of the 'Variable value' field:
  5.   C:\perl\bin;
  6. Click 'Ok' to close each open dialog

You may want to open a new command prompt to check if perl is now in the
path. The following command should work (and return perl's version
information) if the above steps were successful:

  C\>perl -v