There's more than one way to do things | |
PerlMonks |
"scalar found where operator expected" while printing to a glob refby seki (Monk) |
on Mar 01, 2016 at 16:26 UTC ( [id://1156541]=perlquestion: print w/replies, xml ) | Need Help?? |
seki has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
while working on a bigger piece of code I stumbled on this warning while printing on a GLOB reference: Scalar found where operator expected at test_fhref.pl line 17, near "$self $data" (Missing operator before $data?) Could you tell why? The code looks simple, by even a short piece of code can be dangerous for a Perl beginer ;)
for those who may ask themselves "why" using such indirect access, I copy/pasted from XML::SAX::Writer:ConsumerInterface to make my own Consumer class, and the interpreter seems irritated by a simple
The best programs are the ones written when the programmer is supposed to be working on something else. - Melinda Varian
Back to
Seekers of Perl Wisdom
|
|