Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

(tye)Re2: using 'use' conditionally

by tye (Sage)
on Dec 03, 2002 at 17:30 UTC ( [id://217288]=note: print w/replies, xml ) Need Help??


in reply to Re: using 'use' conditionally
in thread using 'use' conditionally

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://217288]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-04-23 20:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found