Recently I got the following error message, issued in one of the library modules I'm using:
Can't use an undefined value as a symbol reference
Could someone please explain to me what it means? If the error would be reproducible, I would put
use diagnostics in this module, but so far the error has occured only once. The code in question looks like this:
print $fh $params{message} or
die "Cannot write to '$self->{filename}': $!";
I wonder whether, by some chance,
$fh got undef here, but then I would have expected to see something like
can not write to undefined file handle. What is a 'symbol reference'? Is it that (deprectaed?) feature where you could use a string, denoting another variable, to indirectly refer to that variable?
--
Ronald Fischer <ynnor@mm.st>