in reply to Re: Named array indices
in thread Named array indices
> Alternatively, just use a prefix: use constant C_NAME => 0;
In big projects I'd rather prefer a dedicated package instead of a prefix, in small ones collisions are unlikely.
Using the C'NAME syntax mightą make the notation even shorter and help giving a visual hint.
Cheers Rolf
1) at least I didn't get any complaints when compiling with strict and warnings.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Named array indices
by BrowserUk (Patriarch) on Aug 05, 2010 at 17:58 UTC | |
by LanX (Saint) on Aug 05, 2010 at 18:03 UTC | |
by BrowserUk (Patriarch) on Aug 05, 2010 at 18:28 UTC |