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

Re: Overwriting a Constant

by juster (Friar)
on May 05, 2010 at 05:12 UTC ( [id://838447]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # file: constant.pm
    package constant;
    ...
    }
    
    1;
    
  2. or download this
    # file: A.pm
    package A;
    ...
    }
    
    1;
    
  3. or download this
    #!/usr/bin/perl
    # file: example.pl
    ...
    use constant { VALUE => 1_000_000 }; # this overrides VALUE
    use A;
    A->func();
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-25 09:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found