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 perusing the Monastery: (15)
As of 2014-12-18 14:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (56 votes), past polls