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 pondering the Monastery: (7)
As of 2015-07-28 03:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (252 votes), past polls