in reply to open to a scalar variable
Don't put quotes around the variable (see open).
open(MESSAGE, '+>>', \$message) or die "no message $!";
(What you're doing is opening a file literally named "$message".)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: open to a scalar variable
by girarde (Hermit) on Jun 05, 2007 at 13:56 UTC | |
by kyle (Abbot) on Jun 05, 2007 at 14:17 UTC |