Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Accessing main::Constant

by ikegami (Pope)
on Dec 17, 2009 at 16:02 UTC ( #813206=note: print w/ replies, xml ) Need Help??


in reply to Accessing main::Constant

The problem is that main::FO1 looks like a file handle. Workarounds:

print main::FO1(); print "".main::FO1; print STDOUT main::FO1;

That said, it makes no sense for a module to rely on the calling script to have a certain function defined.


Comment on Re: Accessing main::Constant
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2014-09-02 03:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (18 votes), past polls