Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^5: how to create a constant file and use it in other file

by alexm (Chaplain)
on Jul 17, 2008 at 01:51 UTC ( [id://698212]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ##### MyConst.pm #####
    package MyConst;
    ...
    
    1;
    __END__
    
  2. or download this
    ##### test.pl #####
    # Uncomment to see Exporter's magic
    ...
    print Data::Dumper->Dump([$const1, \@array, \%hash], [qw(*const1 *arra
    +y *hash)]), "\n";
    print 'foo() = ', foo(), "\n";
    __END__
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://698212]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-26 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found