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
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
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
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
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
> "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
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
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
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
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
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
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
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
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
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
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
> 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
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
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
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
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
> 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
> "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
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
24 matches
Mail list logo