in reply to Re: open to a scalar variable
in thread open to a scalar variable

$message is declared but not defined until the reference assignment is made.

Anyway, unquoting $message and putting the &= into the mode argument worked. Thank you.