manorhce has asked for the wisdom of the Perl Monks concerning the following question:
I could not understand how constant pragma works when we are providing more than one constant like below
use constant { STRAIGHT_LINE_ID => 1, PRORATED_ID => 2, CBP_CUSTOM_ID => 3}; print STRAIGHT_LINE_ID;
Instead of providing
use constant STRAIGHT_LINE_ID => 1; use constant PRORATED_ID => 2; use constant CBP_CUSTOM_ID => 3}
my point is that while "{}" is used for hash reference but how it is taking and works
|
|---|