in reply to Re: searching for clear ways to overwrite the empty string
in thread searching for clear ways to overwrite the empty string
That's neat -- and it could be done like this to make sure that both "undef" and "empty string" are handled without warnings:
(UPDATE: But I'm inclined to think that when there's a problem with too many long variable names, it might mean that those variable names really ought to be keys in a hash.)$_ //= "?" or s/^\z/?/ for ( $this_variable, $that_variable, $another_ +variable );
(updated again to fix the mis-typed operator in the snippet.)
In Section
Seekers of Perl Wisdom