Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: How Constant pragma works with multi constants

by manorhce (Beadle)
on Feb 07, 2013 at 09:49 UTC ( #1017601=note: 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};
    
  2. or download this
    use constant TICKET_FIELDS => qw(ticket_id
      date_modified
      date_created
    );
    my %ticket_fields = map {$_=>1}  TICKET_FIELDS;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (11)
As of 2015-01-26 19:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My top resolution in 2015 is:

















    Results (196 votes), past polls