These two are not exactly the same... they will behave differently if $bar is defined but has a non-true value (like 0). That's because the || operator tests for truth, while the much-to-be-desired // operator (in Perl6) will test for defined-ness. So in Perl6, you could write it as: