+
, concatenate strings with .
:$full_name = $first_name . ' ' . $last_name; $total = $salary + $bonus; |
==
, not =
(other
operators include >, <, >=, <=, and !=):if ($total == 10000) { # do something } |
eq
and ne
(other
operators include lt, gt, ge, le):if ($last_name eq 'Jepson') { # do something } |
Forward to 20 Minutes: Subroutines
Back to 20 Minutes: Basic Datatypes Up to PerlInside section index Up to Perl Inside course index |
Perl Inside: PerlInside - 10
Copyright © 1999, Brian Jepson
|