Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Include Constants from other files

by Chmrr (Vicar)
on Nov 13, 2002 at 07:31 UTC ( [id://212511]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Consts;
    
    use constant PI => 3;    # We're REALLY approximate, here.
    
    "Some true value as the last statement.";
    
  2. or download this
    #!/usr/bin/perl -w
    use strict;
    use Consts;
    
    print "Pi is:", Consts::PI, $\;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-12-08 01:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (50 votes). Check out past polls.