Hello monks,
I have a sub and I am passing a scalar into it. I want to set the receiving variable to null string if there is no incoming variable. What's the best, smartest way to do it. Thanks for your kind wisdom.
sub mycheck
{
# the following throws a warning
my $db = $_ or my $db = "";
}