Perl
Perl is a general-purpose programming language originally developed for text manipulation and now used for a wide range of tasks including system administration, web development, network programming, GUI development, and more. The language is intended to be practical (easy to use, efficient, complete) rather than beautiful (tiny, elegant, minimal). Its major features are that it's easy to use, supports both procedural and object-oriented (OO) programming, has powerful built-in support for text processing, and has one of the world's most impressive collections of third-party modules.
Categories in section: Articles Reviews
| 4D Database (5) | Actionscript (14) | Ajax (30) |
| Apple (25) | ASP (20) | C++ (22) |
| CGI (10) | Coldfusion (22) | Content Management (12) |
| CSS (53) | DHTML (16) | Domain Names (14) |
| Hardware (31) | HTML (39) | Java (31) |
| Javascript (39) | JSP (10) | Linux (81) |
| Microsoft Access (17) | Microsoft Windows (88) | Mysql (21) |
| Networking & Communication (8) | Oracle (15) | Perl (19) |
| PHP (47) | PostgreSQL (9) | Python (18) |
| Ruby (51) | SAP (2) | Search Engine (28) |
| Structured Query Language (29) | Visual Basic (15) | Web Hosting (15) |
| XHTML (9) | XML (21) |
The goal of this article is to examine whether it’s worth for me to switch to Ruby as my main programming language, a position currently taken by Perl. As the title states, it is subjective – in that it presents my personal opinions and targets my specific needs.
Perl has several types of variables.
Scalar Variables
A scalar variable is a variable that holds a single value.
It can hold the value of a number (integer or floating) or a string (from zero characters to enough characters to consume your virtual memory).
The value can change over time, and it can change type (for example, it can change from an integer to a float to a string and back to an integer)
Numeric literals are in the following format:
- Integers:
Decimal: 10 -2884 2_248_188 The underscore can be used to chunk numbers for ease of reading, but don't use the usual comma format, as in 2,248,188, because that means something completely different.
Octal: 037 04214
Hexadecimal: 0x25 0xaB80
- Floats:
Standard: 7.1 .8 9.
Scientific: 3.4E-34 -8.023e43
String literals can be created with either single quotes or double quotes:
- Single quotes: ´hello, world´
- Double quotes (needed to evaluate variables and special characters): "hello, world\n", "\$c is now $c\n"
One must take care with quotes and scalar variables in Perl.
Arithmetic
Perl arithmetic is quite C-like, as you might expect.
+ addition
- subtraction
* multiplication
/ division
% modulus
** exponentiation
{mos_sb_discuss:35}
Both Perl and Ruby provide two sets of logical operators:
* !, && and || (inherited from C)
* not, and and or
{mos_sb_discuss:35} on Startup, perl looks for script in the given below places: 1. linewise through -e switches on command line. 2. In the file mentioned by the first filename on command line. (Note:- Systems supporting the #! notation invoke interpreters this manner.) 3. Passed in implicitly via standard input. This works only if there exists no filename arguments -- to pass arguments to a stdin script you must explicitly specify a - for the script name.
{mos_sb_discuss:35}
In this video you will how linux can run in windows. The users shows you how you can install linux under windows with some perl commands.
{mos_sb_discuss:35}
Once in a while, we receive inquiries about how to ban
email addresses with this or that Master Series script.
One arrived last week. This time, rather than composing a
custom solution, I decided to write an article about how to
do it with pretty much any Perl script. I can then refer
to the online version of the article when responding to
future inquiries.
{mos_sb_discuss:35}
It's probably because I didn't look in the righ places but I just couldn't find a simple
way to create a unique identifier in perl.
I decided it's not worth the trouble going through
the perl man pages (always a thankless task) when it's so easy to create a unique id with a
few lines of code.
{mos_sb_discuss:35}
The workplace has purchased a ActiveState PerlDev studio license for me, so now I can use the PDK and the Komodo IDE.
I began adapting Komodo to my needs today - it looks very nice, but is quite complex and its learning curve is steep. However, with the help of the docs which look extensive, I believe I will eventually master it.
{mos_sb_discuss:35}
This tutorial outlines the steps you need to take in order to compile your perl scripts into standalone executables. There are a
few ways to do this, including the commerical Perl2Exe, and packages such as PerlBin and
App::Packer, and a tool called perlcc.
| Results 1 - 10 of 19 | << Start < Prev 1 2 Next > End >> |
Powered by jReviews




