"be consistent" | |
PerlMonks |
Re^4: Breaking The Rules (eq,given)by tye (Sage) |
on Jun 01, 2006 at 17:06 UTC ( [id://553093]=note: print w/replies, xml ) | Need Help?? |
As noted several times, 'eq' isn't "equals" it is "string equals" (and '==' is "number equals"). If you want to compare to 'undef', then you want 'given' (or 'when' or '~~', Perl6isms that'll appear in Perl5 soon enough - tye
In Section
Meditations
|
|