Skip to Content
Programming PERL in the .NET Environment
book

Programming PERL in the .NET Environment

by Yevgeny Menaker, Michael Saltzman, Robert J. Oberg
September 2002
Intermediate to advanced content levelIntermediate to advanced
496 pages
10h
English
Addison-Wesley Professional
Content preview from Programming PERL in the .NET Environment

Perl Operators

Perl has an abundance of operators. Many of them come from the C programming language, some come from the UNIX shells, and others are strictly particular to Perl. Before we see the complete set of Perl operators, we must explain some preliminary concepts.

Precedence Versus Associativity

Operator precedence defines the order in which operators are to be executed. Operator associativity defines the order when there are ties in the precedence. For example, most languages define multiplication to be higher in precedence than addition, and thus the following evaluates to 17, and not 21.

$x = 2 + 5 * 3;

But what if an expression involves operators of the same precedence?

$x = 200 / 5 * 10;

The precedence does not tell us anything, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Sams Teach Yourself Perl in 21 Days, Second Edition

Sams Teach Yourself Perl in 21 Days, Second Edition

Laura Lemay, Rafe Colburn
Pro Perl

Pro Perl

Peter Wainwright

Publisher Resources

ISBN: 0130652067Purchase book