RE: generate variable names

2002-02-01 Thread boumans
it IS in the perlfaq (addressed as DONT DO THAT) and i'm sure this list's faq refers to it (or should refer to it at any rate) -jos Quoting Russ Foster <[EMAIL PROTECTED]>: > > > I 'm asking if there a dynamic way to generate variable names. > > Man, this question comes up a lot! :) > > I wa

RE: generate variable names

2002-02-01 Thread Russ Foster
> > I 'm asking if there a dynamic way to generate variable names. > Man, this question comes up a lot! :) I was thinking the same, maybe it should be put in the FAQ... -rjf -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: generate variable names

2002-02-01 Thread Bob Showalter
> -Original Message- > From: mb [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 01, 2002 4:37 PM > To: [EMAIL PROTECTED] > Subject: generate variable names > > > Hi all, > I 'm asking if there a dynamic way to generate variable names. Man, this question comes up a lot! :) -- To u

Re: generate variable names

2002-02-01 Thread Brett W. McCoy
On Fri, 1 Feb 2002, mb wrote: > I 'm asking if there a dynamic way to generate variable names. There are easier ways that what you are thinking of. > $id; > foreach(@_){ > my($var1 > in the second time my($var2 -> my($varn > > Thanks a lot in advance, I'd just create an arr

RE: generate variable names

2002-02-01 Thread Wagner-David
If you need something like that, you would be better off using a hash to hold the information vs a number of unknown variable names. I believe that this will be confirmed by the list helpers. Wags ;) -Original Message- From: mb [mailto:[EMAIL PROTECTED]] Sent: Friday, F

Re: generate variable names

2002-02-01 Thread Jeff 'japhy' Pinyan
On Feb 1, mb said: >I 'm asking if there a dynamic way to generate variable names. Yes, and you don't want it. >foreach(@_){ >my($var1 > in the second time my($var2 -> my($varn Why not use an array? my $i = 0; my @data; foreach (@_) { # work with $data[$i]