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

Re: Does perl offer an auto incremental assigning of constants, like Swift?

by Perlbotics (Archbishop)
on Apr 18, 2022 at 19:07 UTC ( [id://11143057]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    print "1st list of enums: ", join(', ',  inv, tut, up,      file    ),
    + "\n";
    print "2nd list of enums: ", join(', ',  Enum::A,  Enum::B, Enum::E ),
    + "\n";
    
  2. or download this
    1st list of enums: 0, 1, 11, 12
    2nd list of enums: 10, 8, 2
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-03-28 20:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found