RE: Simulating VB Enum

2003-08-28 Thread Dan Muey
Not a vb person myself but would a hash do that then: my %enum = ( ASSET => 1, LIABILITY => 2, EQUITY => 3, REVENUE => 4, EXPENSE => 5, DIVIDEND => 6, CONTRA_ASSET => 11, ); Or is Vb's enum like mysql's enum? I ask since you where doing a select and I don't know if that is a

Re: Simulating VB Enum

2003-08-28 Thread R. Joseph Newton
Dan Muey wrote: > In addtion to Rob's very sound advice it sound like you simply need an array: > > my @enum = qw(dhbold dhcaption dhend dhform); > > print $enum[0]; # prints dhbold > print $enum[2]; # prints dbhend > > HTH > > DMuey Sorry Dan, I dn't think so. That usage actually goes in the w

RE: Simulating VB Enum

2003-08-27 Thread Dan Muey
> Remember these 3 words... search.cpan.org ;) > > http://search.cpan.org/search?query=enum&mode=all > > CPAN is always the best place to start looking for code. > > On the results page is looks like "enum" will do what you need. > > Rob > In addtion to Rob's very sound advice it sound like y

Re: Simulating VB Enum

2003-08-27 Thread James Edward Gray II
On Wednesday, August 27, 2003, at 02:35 PM, Harter, Douglas wrote: Visual Basic has a construct called Enum which looks like so: Enum namea dhbold dhcaption dhend dhform . end enum What it essentially does is assign an incrementing numeric value to each varia

RE: Simulating VB Enum

2003-08-27 Thread Hanson, Rob
Remember these 3 words... search.cpan.org ;) http://search.cpan.org/search?query=enum&mode=all CPAN is always the best place to start looking for code. On the results page is looks like "enum" will do what you need. Rob -Original Message- From: Harter, Douglas [mailto:[EMAIL PROTECTED