Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Accessing main::Constant

by nagalenoj (Friar)
on Dec 16, 2009 at 05:23 UTC ( #812972=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package pq;
    use strict;
    ...
    
    sub pr { print main::FO1; }
    1;
    
  2. or download this
    use strict;
    use warnings;
    ...
    my $obj = new pq;
    pq->pr();        # says 'print() on unopened filehandle FO1 at pq.pm l
    +ine 28.'
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://812972]
Approved by biohisham
Front-paged by biohisham
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2015-07-03 09:19 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 (51 votes), past polls