rovf has asked for the wisdom of the Perl Monks concerning the following question:
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:Can't use an undefined value as a symbol reference
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Please kindly explain this error message
by Anonymous Monk on Sep 28, 2009 at 07:51 UTC | |
by rovf (Priest) on Sep 28, 2009 at 08:19 UTC | |
|
Re: Please kindly explain this error message
by Anonymous Monk on Sep 28, 2009 at 07:53 UTC |