`my $foo ||= ...` makes no sense. The `my` redeclares the variable (if it was previously declared, and if so, that's bad form).