Re: Getting the best answer(WAS: RE: How do you dynamically assign array names?)

2003-11-16 Thread R. Joseph Newton
Tim Johnson wrote: > -Original Message- > From: Rob Dixon [mailto:[EMAIL PROTECTED] > > How can anyone suggest what the 'alternatives' may be without an > > explanation of the problem? > > > > Rob > > When submitting a question to the list, try to answer these questions: > > What problem w

Re: How do you dynamically assign array names?

2003-11-16 Thread R. Joseph Newton
david wrote: > David wrote: > > >> this normally can't be done cleanly and is generally not recommanded > >> given there are other ways to accomplish bascially the same thing. > > Steve Grazzini wrote: > > > > > But why use the symbol table at all? That's more dangerous > didn't i already mentio

Re: How do you dynamically assign array names?

2003-11-16 Thread R. Joseph Newton
Steve Grazzini wrote: > use strict; > my $name = 'foo'; > > $::{$name} = [1,2,3]; # LHS is a glob > print "@{ $::{$name} }\n"; > > no strict 'vars'; > print "@foo\n"; Cool. The "Second Amendment" response ;-o) Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Re: How do you dynamically assign array names? [slightly OT: enabling folly]

2003-11-16 Thread R. Joseph Newton
Wiggins d Anconia wrote: > > Douglas Houston [mailto:[EMAIL PROTECTED] > > : > > : WHY do I need to explain why I want to do this? > > > > Because no one wants to give a loaded gun to > > someone who hasn't demonstrated a good grasp of > > gun safety. > > > > > > That is a very ironic respons

Re: How do you dynamically assign array names?

2003-11-16 Thread R. Joseph Newton
Douglas Houston wrote: > On Fri, 14 Nov 2003, Jeff 'japhy' Pinyan wrote: > > > On Nov 14, Douglas Houston said: > > > > >I am trying to initialize a dynamically-named array, > > > > You need to explain WHY you want to do this. There doesn't seem to me to > > be a good reason. Use a hash of array

Re: How do you dynamically assign array names?

2003-11-15 Thread Randal L. Schwartz
> "Charles" == Charles K Clarkson <[EMAIL PROTECTED]> writes: Charles> : WHY do I need to explain why I want to do this? Charles> Because no one wants to give a loaded gun to Charles> someone who hasn't demonstrated a good grasp of Charles> gun safety. Well said! It's like you've asked

Localization problems - Re: How do you dynamically assign array names?

2003-11-15 Thread drieux
On Friday, Nov 14, 2003, at 09:07 US/Pacific, Wiggins d Anconia wrote: Douglas Houston [mailto:[EMAIL PROTECTED] : : WHY do I need to explain why I want to do this? Because no one wants to give a loaded gun to someone who hasn't demonstrated a good grasp of gun safety. That is a very ironic re

Getting the best answer(WAS: RE: How do you dynamically assign array names?)

2003-11-14 Thread Tim Johnson
riginal Message- From: Rob Dixon [mailto:[EMAIL PROTECTED] Sent: Friday, November 14, 2003 10:09 AM To: [EMAIL PROTECTED] Subject: Re: How do you dynamically assign array names? How can anyone suggest what the 'alternatives' may be without an explanation of the problem? Rob -- To un

Re: How do you dynamically assign array names?

2003-11-14 Thread Rob Dixon
Steve Grazzini wrote: > > On Fri, Nov 14, 2003 at 12:25:41PM -0800, david wrote: > > Douglas Houston wrote: > >> > >> I am trying to initialize a dynamically-named array > > > > this normally can't be done cleanly and is generally not recommanded given > > there are other ways to accomplish bascial

Re: How do you dynamically assign array names?

2003-11-14 Thread Steve Grazzini
On Fri, Nov 14, 2003 at 01:24:53PM -0800, david wrote: > David wrote: >>> this normally can't be done cleanly and is generally not recommanded >>> given there are other ways to accomplish bascially the same thing. > > Steve Grazzini wrote: >> But why use the symbol table at all? That's more dange

Re: How do you dynamically assign array names?

2003-11-14 Thread david
David wrote: >> this normally can't be done cleanly and is generally not recommanded >> given there are other ways to accomplish bascially the same thing. Steve Grazzini wrote: > > But why use the symbol table at all? That's more dangerous than using > a regular hash, and more awkward than usi

Re: How do you dynamically assign array names?

2003-11-14 Thread Steve Grazzini
On Fri, Nov 14, 2003 at 12:25:41PM -0800, david wrote: > Douglas Houston wrote: >> >> I am trying to initialize a dynamically-named array > > this normally can't be done cleanly and is generally not recommanded given > there are other ways to accomplish bascially the same thing. but if you are

Re: How do you dynamically assign array names?

2003-11-14 Thread david
Douglas Houston wrote: > Hi, > > I am trying to initialize a dynamically-named array, i.e. with the > following test code (if I type "script.pl char" at the command prompt) I > get the message "array char contains 1 2 3" but I get a warning if 'use > strict' is on. Can anyone show me how it shoul

Re: How do you dynamically assign array names?

2003-11-14 Thread Rob Dixon
Wiggins D Anconia wrote: > > > Douglas Houston [mailto:[EMAIL PROTECTED] > > : > > : WHY do I need to explain why I want to do this? > > > > Because no one wants to give a loaded gun to > > someone who hasn't demonstrated a good grasp of > > gun safety. > > > > > > That is a very ironic respon

Re: How do you dynamically assign array names?

2003-11-14 Thread Rob Dixon
Douglas Houston wrote: > > On Fri, 14 Nov 2003, Jeff 'japhy' Pinyan wrote: > > > On Nov 14, Douglas Houston said: > > > > >I am trying to initialize a dynamically-named array, i.e. with the > > >following test code (if I type "script.pl char" at the command prompt) I > > >get the message "array cha

Re: How do you dynamically assign array names?

2003-11-14 Thread Steve Grazzini
On Fri, Nov 14, 2003 at 04:30:05PM +, Douglas Houston wrote: > On Fri, 14 Nov 2003, Jeff 'japhy' Pinyan wrote: >> On Nov 14, Douglas Houston said: >> >>> I am trying to initialize a dynamically-named array >> >> You need to explain WHY you want to do this. There doesn't seem to me to >> be a g

RE: How do you dynamically assign array names?

2003-11-14 Thread Wiggins d Anconia
> Douglas Houston [mailto:[EMAIL PROTECTED] > : > : WHY do I need to explain why I want to do this? > > Because no one wants to give a loaded gun to > someone who hasn't demonstrated a good grasp of > gun safety. > > That is a very ironic response coming from someone who based on their

RE: How do you dynamically assign array names?

2003-11-14 Thread Charles K. Clarkson
Douglas Houston [mailto:[EMAIL PROTECTED] : : WHY do I need to explain why I want to do this? Because no one wants to give a loaded gun to someone who hasn't demonstrated a good grasp of gun safety. HTH, Charles K. Clarkson -- Head Bottle Washer, Clarkson Energy Homes, Inc. Mobile Home

Re: How do you dynamically assign array names?

2003-11-14 Thread Jeff 'japhy' Pinyan
On Nov 14, Douglas Houston said: >On Fri, 14 Nov 2003, Jeff 'japhy' Pinyan wrote: > >> On Nov 14, Douglas Houston said: >> >> >I am trying to initialize a dynamically-named array, i.e. with the >> >following test code (if I type "script.pl char" at the command prompt) I >> >get the message "array

Re: How do you dynamically assign array names?

2003-11-14 Thread Douglas Houston
On Fri, 14 Nov 2003, Jeff 'japhy' Pinyan wrote: > On Nov 14, Douglas Houston said: > > >I am trying to initialize a dynamically-named array, i.e. with the > >following test code (if I type "script.pl char" at the command prompt) I > >get the message "array char contains 1 2 3" but I get a warning

RE: How do you dynamically assign array names?

2003-11-14 Thread NYIMI Jose (BMB)
To complete previous posts, have a look to this: Subject: Why it's stupid to `use a variable as a variable name' http://perl.plover.com/varvarname.html José. -Original Message- From: Douglas Houston [mailto:[EMAIL PROTECTED] Sent: Friday, November 14, 2003 4:55 PM To: [EMAIL PROTEC

Re: How do you dynamically assign array names?

2003-11-14 Thread Wiggins d Anconia
> Hi, > > I am trying to initialize a dynamically-named array, i.e. with the > following test code (if I type "script.pl char" at the command prompt) I > get the message "array char contains 1 2 3" but I get a warning if 'use > strict' is on. Can anyone show me how it should be done (I would lik

Re: How do you dynamically assign array names?

2003-11-14 Thread Randal L. Schwartz
> "Douglas" == Douglas Houston <[EMAIL PROTECTED]> writes: Douglas> I am trying to initialize a dynamically-named array, Douglas> i.e. with the following test code (if I type "script.pl char" Douglas> at the command prompt) I get the message "array char contains Douglas> 1 2 3" but I get a war

Re: How do you dynamically assign array names?

2003-11-14 Thread Jeff 'japhy' Pinyan
On Nov 14, Douglas Houston said: >I am trying to initialize a dynamically-named array, i.e. with the >following test code (if I type "script.pl char" at the command prompt) I >get the message "array char contains 1 2 3" but I get a warning if 'use >strict' is on. Can anyone show me how it should b