set entry to an empty string instead of undef in order to avoid "Use of uninitialized value $entry" warnings. Quoting perldelta for 5.26: Code like $x = $x . "a" was incorrectly failing to yield a use of uninitialized value warning when $x was a lexical variable with an undefined value. That has now been fixed. [perl #127877]