Re: Strong Type comparsion in Perl

2010-04-24 Thread Bob goolsby
And, whist you're at it, take a good look at your "use case". I have yet to see a use of the PHP triple-equal that wasn't a band-aid to recover from a design error in the code. B On Thu, Apr 22, 2010 at 8:55 AM, Ryan Chan wrote: > How to do strong type comparsion in Perl, like in PHP > > e.g. >

Re: Strong Type comparsion in Perl

2010-04-24 Thread Uri Guttman
> "RC" == Ryan Chan 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 d