Re: need help building variables dynamically

2006-11-02 Thread jm
thanks to everyone for the suggestions On 11/1/06, Mumia W. <[EMAIL PROTECTED]> wrote: On 11/01/2006 01:44 PM, jm wrote: > On 11/1/06, John W. Krahn <[EMAIL PROTECTED]> wrote: > >> >> Use a hash: >> >> my %oob = ( >> state => 'IL', >> lata => 732, >> name => 'SomeName', >> );

Re: need help building variables dynamically

2006-11-01 Thread Mumia W.
On 11/01/2006 01:44 PM, jm wrote: On 11/1/06, John W. Krahn <[EMAIL PROTECTED]> wrote: Use a hash: my %oob = ( state => 'IL', lata => 732, name => 'SomeName', ); If you don't think that you need a hash then be aware that what you are trying to do is actually using a hash

Re: need help building variables dynamically

2006-11-01 Thread jm
On 11/1/06, John W. Krahn <[EMAIL PROTECTED]> wrote: Use a hash: my %oob = ( state => 'IL', lata => 732, name => 'SomeName', ); If you don't think that you need a hash then be aware that what you are trying to do is actually using a hash anyways (the %main:: hash.) John -

Re: need help building variables dynamically

2006-11-01 Thread Tom Phoenix
On 11/1/06, jm <[EMAIL PROTECTED]> wrote: i'm trying to build variables dynamically from data passed to a subroutine. i pass a text value (a field from a database) and want to build an associated variable name by appending a prefix to the field name ($oob_). Perl allows you to do this. (Perl

Re: need help building variables dynamically

2006-11-01 Thread John W. Krahn
jm wrote: > i'm trying to build variables dynamically from data passed to a > subroutine. i pass a text value (a field from a database) and want to > build an associated variable name by appending a prefix to the field > name ($oob_). that constructed variable would then acquire > the value of th