in reply to Re: logical-assignment operators
in thread logical-assignment operators
Having recently run into a really good use for &&= this comment caught my eye. How about:
$value &&= 'prefix-' . uc $value;
translated as "$value contains a string, uppercase it and prepend the prefix."
In my particular circumstance, '0' was not going to happen but either undef or the empty string were possible. Those cases were filtered out in later processing.
|
|---|