| ||||
|
| ||||
Perl Primer - Chapter 1 - Introductionby Linda NaughtonWhat is Perl?Practical Extraction and Report LanguagePathologically Eclectic Rubbish Lister (Actually it was originally just a name, not an acronym) "The symbol of Perl has become the camel... Camels are there to get the job done despite all the difficulties, even when they look bad and smell worse and sometimes spit at you. Perl is a little like that." (Learning Perl) Run-time Interpreted Language Perl motto: "There's More Than One Way To Do It." What is Perl Good For?
What is Perl *NOT* Good For?
Getting HelpPerl Directory (documents): www.perl.orgComprehensive Perl Archive Network (modules): www.cpan.org Perl's Hello World#!/usr/bin/perl print "Hello, world!\n"; The first line is a comment telling the system where to find the perl interpreter. On unix systems, this allows you to run a perl script without calling the interpreter explicitly. The location of your perl interpreter may vary. Not needed on Windows. Running PerlYou need an interpreter. For Unix (and Mac OSX) systems, it's usually already installed. For Windows, get ActivePerl from activestate.com.On Unix/OSX systems:
Note: Make sure the first line of the program has the correct path to your perl interpreter. You can usually find this by typing 'which perl' On Windows systems:
Note: On Windows, you don't need the first line of the program specifying the perl interpreter. Technically you can run a perl program by double-clicking on it, but then you won't be able to see the output, so this is of limited usefulnes.
|
![]()
|
|||