my $string = ; chomp($string); $string = 'default' if $string eq '';