Problems? Is your data what you think it is? | |
PerlMonks |
(tye)Re2: using 'use' conditionallyby tye (Sage) |
on Dec 03, 2002 at 17:30 UTC ( [id://217288]=note: print w/replies, xml ) | Need Help?? |
Change MainLoop; to MainLoop(); to fix the problem. MainLoop; is only the same as MainLoop(); if, at the time that it is compiled, you have already declared a subroutine with that name. Otherwise it is a bareword which is either the same as "MainLoop"; (if strict isn't on) or is a fatal error. Read (tye)Re: use vs. require and Conditional compile-time magic (RE: Checking to see if a particular Module is installed) for more to meditate on. Thanks to ybiC for pointing this out. - tye
In Section
Seekers of Perl Wisdom
|
|