Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 scrutinizing the Monastery: (12)
As of 2014-10-24 12:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (131 votes), past polls