Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@agiliq
Created July 15, 2009 19:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agiliq/147925 to your computer and use it in GitHub Desktop.
Save agiliq/147925 to your computer and use it in GitHub Desktop.
Perl> undef == 10;
Use of uninitialized value in numeric eq (==) at (eval 2) line 3.
Perl> undef > 10;
Use of uninitialized value in numeric gt (>) at (eval 3) line 3.
Perl> undef < 10;
Warning: Use of "undef" without parentheses is ambiguous at (eval 4) line 3.
[!] compilation error: Unterminated <> operator at (eval 4) line 3.
Perl> (undef) < 10;
Use of uninitialized value in numeric lt (<) at (eval 5) line 3.
1
Perl> 10 == 10;
1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment