Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 having an uproarious good time at the Monastery: (5)
As of 2014-08-21 03:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (127 votes), past polls