On Sat, Apr 18, 2009 at 20:51, Jay Soffian <jaysoffian@xxxxxxxxx> wrote: > What is '//' about? It's called the Logical Defined-OR: http://perldoc.perl.org/perlop.html#C-style-Logical-Defined-Or > Although it has no direct equivalent in C, Perl's // operator is related to its C-style or. In fact, it's exactly the same as ||, except that it tests the left hand side's definedness instead of its truth. Thus, $a // $b is similar to defined($a) || $b (except that it returns the value of $a rather than the value of defined($a)) and is exactly equivalent to defined($a) ? $a : $b . This is very useful for providing default values for variables. If you actually want to test if at least one of $a and $b is defined, use defined($a // $b) ... However, I wonder if your comment is a veiled quip at my "Improve redability" claim (which is also ironically unreadable). :-) -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html