Can't use //=, that's a 5.10 thing.  when undef works just as well.