Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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.

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 avoiding work at the Monastery: (6)
As of 2016-09-25 21:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (473 votes). Check out past polls.