From 7de977a58ea74ceda04eb09e1af2dc209ed8f42c Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 30 Apr 2004 09:09:45 +0000 Subject: detect "$xxx == undef" --- perl_checker.src/test/context.t | 2 ++ 1 file changed, 2 insertions(+) (limited to 'perl_checker.src/test') diff --git a/perl_checker.src/test/context.t b/perl_checker.src/test/context.t index 5fd7809..edb0452 100644 --- a/perl_checker.src/test/context.t +++ b/perl_checker.src/test/context.t @@ -13,3 +13,5 @@ length @l never use "length @l", it returns the l 'xxx' > 'yyy' you should use a string operator, not the number operator ">" 1 cmp 2 you should use a number operator, not the string operator "cmp" (or replace the number with a string) + +$xxx == undef context undef is not compatible with context float -- cgit v1.2.1