>>>>> "RC" == Ryan Chan <ryanchan...@gmail.com> 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  ------  u...@stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to