Beefy Boxes and Bandwidth Generously Provided by pair Networks kudra
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

How Constant pragma works with multi constants

by manorhce (Sexton)
on Feb 06, 2013 at 13:21 UTC ( #1017423=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use constant {
    STRAIGHT_LINE_ID => 1,
    PRORATED_ID      => 2,
    CBP_CUSTOM_ID    => 3};
    print STRAIGHT_LINE_ID;
     
    
  2. or download this
    use constant STRAIGHT_LINE_ID => 1;
    use constant PRORATED_ID => 2;
    use constant CBP_CUSTOM_ID => 3}
     
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2014-04-19 00:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (473 votes), past polls