I.T. Discussion Community!
-Collapse +Expand
Perl
Search Perl Group:

Advanced
-Collapse +Expand Perl To/From
To/FromCODEGuides
-Collapse +Expand Perl Store
PRESTWOODSTORE
   ► KBWebsite Scri...Perl   Print This    All Groups  

Perl KB: Perl Topic

Topics

26 Articles Found in the Perl Topic  (or one of the sub-topics in bold above)

  KB Article    

Mike Prestwood
1. A 10 Minute Perl Quick Start

A short 10 minute Perl primer. Get started in Perl now!

Posted to KB Topic: Beginners Corner
16 years ago, and updated 10 years ago
(3 Comments , last by Ann.M )

Article
Nothing New Since Your Last Visit
21211
Hits

Mike Prestwood
2. ActivePerl Distribution (Install Perl)

ActivePerl is the industry-standard Perl distribution, available for Windows, Linux, Mac OS X, Solaris, AIX and HP-UX. Developers worldwide rely on ActivePerl's completeness and ease-of-use, while corporate users protect their infrastructure and stay competitive with quality-assured ActivePerl business solutions.

11 years ago, and updated 11 years ago
(1 Comments , last by Robert.G3 )

Download
Nothing New Since Your Last Visit
12448
Hits

Mike Prestwood
3. ActivePerl Pro Studio Commercial Perl development suite from ActiveState.
11 years ago

Download
Nothing New Since Your Last Visit
9719
Hits

Mike Prestwood
4. Perl Assignment (=)

Perl assignment operators:

= Assignment $x = 8;
+= Addition $x += 8;
-= Substraction $x -= 8;
*= Muliplication $x *= 8;
/= Division $x /= 8;
%= Modulus $x %= 8;
**= Exponent $x **= 8;

10 years ago

Code
Nothing New Since Your Last Visit
8069
Hits

Mike Prestwood
5. Perl Associative Array (% Array Preface)

General Info: Associative Array

A set of unique keys linked to a set of values. Each unique key is associated with a value. Think of it as a two column table. MyArray['CA'] = 'California' MyArray['AR'] = 'Arizona'

Languages Focus: Associative Array

Associative arrays are also known as a dictionary or a hash table in other languages.

Perl Associative Array

Posted to KB Topic: Language Reference
11 years ago, and updated 10 years ago

Code
Nothing New Since Your Last Visit
8707
Hits

Mike Prestwood
6. Perl Case Sensitivity (Yes)

Perl is case sensitive.

Posted to KB Topic: Beginners Corner
11 years ago, and updated 10 years ago

Code
Nothing New Since Your Last Visit
7826
Hits

Mike Prestwood
7. Perl Code Blocks

In Perl, you create the entire HTML page within your .PL script file using print commands.

For Perl, PHP, JavaScript, Java,and C++, I prefer to put the first { at the end of the first line of the code block as in this example because I see morePeal codeformatted that way.

Posted to KB Topic: Beginners Corner
11 years ago, and updated 10 years ago

Code
Nothing New Since Your Last Visit
7462
Hits

Mike Prestwood
8. Perl Comments (#)

Commenting Code
Perl uses # for single line comments and Perl does NOT have a multiple line comment.

Compiler Directives (A special comment.)

Perl also uses compiler directives embedded in comments with #! as in:

#!/usr/local/bin/perl -w
11 years ago, and updated 10 years ago

Code
Nothing New Since Your Last Visit
8016
Hits

Mike Prestwood
9. Perl Comparison Operators (==, !=)

Common comparison operators:

== equal
!= not equal
< less than
> greater than
<= less than or equal
>= greater than or equal

Posted to KB Topic: Beginners Corner
10 years ago
(3 Comments , last by EliteExpress )

Code
Nothing New Since Your Last Visit
11757
Hits

Mike Prestwood
10. Perl Constants (use constant)

In PHP, you declare constants using the define keyword:

define("CONST_NAME", "Value");

Constants in PHP are case sensitive. A common standard in PHP is to use all-uppercase letters, with underscores to separate words within the name.

9 years ago

Code
Nothing New Since Your Last Visit
9965
Hits

Mike Prestwood
11. Perl Custom Routines (sub)

Perl uses subs and parameters are referenced in a special array. All arguments passed to a subroutine are stored in a special @_ array. To retrieve the arguments, you have to look inside the array and extract them.

11 years ago, and updated 11 years ago

Code

KB Post
Nothing New Since Your Last Visit
11046
Hits

Mike Prestwood
12. Perl Deployment Overview

With Perl, you simply copy your files to a web server that is capable of running Perl pages.

Posted to KB Topic: Beginners Corner
10 years ago

Code
Nothing New Since Your Last Visit
8069
Hits

Mike Prestwood
13. Perl Development Tools

Many developers just use a text editor but you have to be careful when developing on Windows and deploying to Unix/Linix. Some Windows text editors including Notepad, and Microsoft Expression Web save text files in UTF-8 which is not compatible with Unix/Linux.

There are many Perl editors available including ActivePerl Pro Studio, and the free Perl Express. I usually use Perl Express.

Quick Start: Install Perl to IIS or Apache, install Perl Express then configure to use Perl, then install MySQL. For IIS 7, you will likely have to configure Hangler Mappings and add %s %s.

11 years ago, and updated 10 years ago

Code
Nothing New Since Your Last Visit
10601
Hits

Mike Prestwood
14. Perl Express Free Perl editor.
11 years ago

Download
Nothing New Since Your Last Visit
9599
Hits

Mike Prestwood
15. Perl File Extensions (.pl, .plex, and .aspl)

.pl is the traditonal default extension for Perl although some developers will change the default extension in an effort to add an additional security level and .cgi is still popular as a Perl associated extension as well as .plex and .aspl.

  • .pl - Perl
  • .cgi - Common Gateway Interface
  • .plex - Perl Executable
  • .aspl - Active Server Perl
Posted to KB Topic: Beginners Corner
11 years ago, and updated 10 years ago

Code
Nothing New Since Your Last Visit
11381
Hits

Mike Prestwood
16. Perl If Statement (if..elsif..else)

Notice Perl is different from most other languages in it's spelling of elsif (else is not spelled correctly).

Posted to KB Topic: Beginners Corner
10 years ago

Code
Nothing New Since Your Last Visit
7419
Hits

Mike Prestwood
17. Perl Literals (quote)

Literals are quoted as in "Prestwood".  If you need to embed a quote use a slash in front of the quote as in \"

Posted to KB Topic: Beginners Corner
11 years ago, and updated 10 years ago

Code

KB Post
Nothing New Since Your Last Visit
13504
Hits

Mike Prestwood
18. Perl Logical Operators

Perl logical operators:

&& or and and, as in this and that
|| or or or, as in this or that
! Not, as in Not This

Posted to KB Topic: Beginners Corner
10 years ago

Code
Nothing New Since Your Last Visit
8799
Hits

Mike Prestwood
19. Perl Operators

List of Perl operators.

Posted to KB Topic: Language Reference
16 years ago, and updated 10 years ago

KB Post
Nothing New Since Your Last Visit
10573
Hits

Mike Prestwood
20. Perl Overloading

Perl

  • Operator - Yes
  • Method -
Posted to KB Topic: Language Reference
11 years ago, and updated 10 years ago
(10 Comments , last by Expert.W )

Code
Nothing New Since Your Last Visit
8667
Hits

Mike Prestwood
21. Perl Overview and History

Language Overview: Perl is a stable, cross platform programming language.

Target Platforms: Perl is most suitable for creating websites targeting any browser (any web server with the Perl module installed).

History: PERL is an acronym for Practical Extraction and Report Language. It is used for mission critical projects in the public and private sectors. Perl is Open Source software, licensed under its Artistic License, or the GNU General Public License (GPL). Perl was created in 1987 by Larry Wall.

Posted to KB Topic: Beginners Corner
11 years ago, and updated 10 years ago

Code
Nothing New Since Your Last Visit
10676
Hits

Mike Prestwood
22. Perl Report Tools Overview

Because website development targets a client browser (a document interfaced GUI), a common solution is to simply output an HTML formatted page with black text and a white background (not much control but it does work for some situations).

Posted to KB Topic: Beginners Corner
11 years ago, and updated 11 years ago

Code
Nothing New Since Your Last Visit
7852
Hits

Mike Prestwood
23. Perl String Concatenation (.)

Perl String Concatenation

Perl uses a period (.) known as a dot to concatenate strings.

Posted to KB Topic: Beginners Corner
11 years ago, and updated 10 years ago

Code
Nothing New Since Your Last Visit
7179
Hits

Mike Prestwood
24. Perl Unary Operators

An operation with only one operand (a single input). The following are the Perl unary operators: !, -, ~, +,�\, &, and *.

  • ! performs logical negation which is "not"
  • - performs arithmetic negation if the operand is numeric.
  • ~ performs bitwise negation, that is 1's complement.
  • + has no semantic effect whatsoever, even on strings.
  • \ creates a reference to whatsoever follows.
  • & Address of operator.
  • * Dereference address operator.
Posted to KB Topic: Beginners Corner
11 years ago, and updated 10 years ago

Code
Nothing New Since Your Last Visit
13842
Hits

Mike Prestwood
25. Perl Variables ($x = 0;)

Perl is a loosely typed language with only three types of variables: scalars, arrays, and hashes. Use $ for a scalar variable, @ for an array, or % for a hash (an associative array). The scalar variable type is used for anytype of simple data such as strings, integers, and numbers. In Perl, you identify and use a variable with a $ even within strings

Posted to KB Topic: Beginners Corner
11 years ago, and updated 9 years ago

Code

KB Post
Nothing New Since Your Last Visit
11230
Hits

Mike Prestwood
26. PHP Case Sensitivity (Yes and No)

PHP is case sensitive with variable names but not with commands. Although commands are case incenstive, I prefer to use all lowercase because it's easy to type and that's what I see most PHP coders doing and I see it on PHP.Net.

Posted to KB Topic: Beginners Corner
11 years ago, and updated 10 years ago

Code
Nothing New Since Your Last Visit
6844
Hits

Icon Legend:
Recent or not:
- Recent activity (within last two weeks).
- No activity last two weeks.
 Since your last logged visit:
- New to you or updated since your last visit (sign in now to activate).
- NOT new to you since your last visit (sign in now to activate).

New Perl Knowledge Base Post...

Share your knowledge with the WORLD! In addition to adding comments to existing posts, you can post knowledge you've acquired. We welcome full articles (intro with screen shots), general posts (shorter), and tidbits (tips, FAQs, definitions, etc.).

Post New...

Tidbit Post: Short Flashcard FAQ Definition Quick Tip Code Snippet
Longer Post: Full Article General Post File Link Error News
Other: Blog Topic
Or, if YOU have a question...
  Perl Message Board

Follow PrestwoodBoards on: 


©1995-2019 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech