Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


Table 2. Perl Comparison Operators

April 26, 1999

Operator

Name

Description

Example

Result

>

arithmetic greater-than Compares whether left value is greater than right value. 20>30 false

<

arithmetic less-than Compares whether left value is smaller than right value. 20<30 true

>=

arithmetic greater-than or equal to Compares whether left value is equal to or greater than right value. 30>=20 true

<=

arithmetic less-than or equal to Compares whether left value is equal to or less than right value 20<=20 true

==

arithmetic equality Compares whether left value is equal to right value. 20==30 false

!=

arithmetic inequality Compares whether left value is not equal to right value. 20!=30 true

gt

string greater-than Compares whether left value comes alphabetically after right value. "fat" gt "hat" false

lt

string less-than Compares whether left value comes alphabetically before right value. "fat" lt "hat" true

ge

string greater-than or equal to Compares whether left value is equal to or comes alphabetically after right value. "pat" ge "pat" true

le

string less-than or equal to Compares whether left value is equal to or comes alphabetically before right value. "sat" le "pat" false

eq

string equality Compares whether left value is exactly the same as the right value. "bob" eq "bob1" false

ne

string inequality Compares whether left value is at all different from the right value. "bob" ne "bob1" true

Perl Variables: Comparing Scalars
The Perl You Need to Know
Perl Variables: Lists (aka Arrays)


Up to => Home / Authoring / Languages / Perl / PerlfortheWeb




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers