Problems? Is your data what you think it is? | |
PerlMonks |
Re: Re: fixing use ofby wog (Curate) |
on Dec 18, 2001 at 01:24 UTC ( [id://132674]=note: print w/replies, xml ) | Need Help?? |
our is not in this case not be recognized as a subroutine call. The error indicates it's being used as a method call (in the indirect object syntax), but the value it's being called on, $show_fields, is not defined, and hence perl can't lookup the method to call. I would note that you'd probably should get an error from that suggests that it was being redeclared for some reason or that strict is not being used. (Since strict would give a different error on the use of an undeclared variable.)
In Section
Seekers of Perl Wisdom
|
|