in reply to Term::ReadLine behaviour on a blank line

Comment:
last unless defined $filename; # this doesn't work last if $filename eq ''; # this doesn't work, either