Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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?
[ambrus]: Some wine tastes good.
Discipulus ...
choroba . o O ( getting old )
[holli]: I liked red coke. ensures a hell of a hangover though
[Corion]: Naah, there is good wine, and I like its taste. I also like beer, depending on the food that goes with it :)
[holli]: but really, there are a lot of myths around wine. starting with people thinking they could distinguish red and white wine by taste (when blindfolded) let alone australian and french red win
[holli]: that's an empirical fact btw

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2017-09-25 13:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (280 votes). Check out past polls.

    Notices?