Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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

by Perlbotics (Bishop)
on Apr 18, 2022 at 19:07 UTC ( #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? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2022-08-17 12:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?