>>>>> "RC" == Ryan Chan <[email protected]> writes:

  RC> How to do strong type comparsion in Perl, like in PHP
  RC> e.g.

define type.

  RC> // same type and same value
  RC> if ($foo === $bar) {

  RC> }

perl uses == or eq to compare numerically or string wise. it is better
to put the control in the op vs the data. two things may be different 
types but perl will convert as needed. you control the conversion by
choosing the op.

uri

-- 
Uri Guttman  ------  [email protected]  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to