array numerical name...

2002-04-29 Thread Steven_Massey
Hi all - should be simple - but I cannot figure it out basically i want to name an array with a subscript ie world0[0] and world1[0] the 0/1 being a variable, i have tried to produce a simple example For any help - thanks.. -- @fre

RE: array numerical name...

2002-04-29 Thread Timothy Johnson
om: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 2:19 PM To: [EMAIL PROTECTED] Subject: array numerical name... Hi all - should be simple - but I cannot figure it out basically i want to name an array with a subscript ie world0[0] and world1[0] the 0/1 being a variab

Re: array numerical name...

2002-04-29 Thread drieux
On Monday, April 29, 2002, at 02:19 , [EMAIL PROTECTED] wrote: > Hi all - should be simple - but I cannot figure it out > > basically i want to name an array with a subscript ie world0[0] and > world1[0] the 0/1 being a variable, i have tried to > produce a simple example do I feel you

Re: array numerical name...

2002-04-29 Thread Chas Owens
On Mon, 2002-04-29 at 17:19, [EMAIL PROTECTED] wrote: > Hi all - should be simple - but I cannot figure it out > > basically i want to name an array with a subscript ie world0[0] and world1[0] the >0/1 being a variable, i have tried to > produce a simple example > > For any help - thank

Re: array numerical name...

2002-04-29 Thread drieux
On Monday, April 29, 2002, at 02:42 , Chas Owens wrote: [..] > > EVAL METHOD > #!/usr/bin/perl -w > use strict; > > my @fred = "one,two,three,four"; > > for my $a (0..3) { > eval "my \@array$a=split(/,/, \@fred)"; > } > > for my $b (0..3) { > eval qq(print \@array$a[\$b], "\\n"); > }

Re: array numerical name...

2002-04-29 Thread Chas Owens
On Tue, 2002-04-30 at 00:23, drieux wrote: > > On Monday, April 29, 2002, at 02:42 , Chas Owens wrote: > [..] > > > > EVAL METHOD > > #!/usr/bin/perl -w > > use strict; > > > > my @fred = "one,two,three,four"; > > > > for my $a (0..3) { > > eval "my \@array$a=split(/,/, \@fred)"; > > } > > >

Re: array numerical name...

2002-04-30 Thread Steven_Massey
?? Thanks [EMAIL PROTECTED] on 04/29/2002 10:19:24 PM To: [EMAIL PROTECTED] cc: Subject: array numerical name... Hi all - should be simple - but I cannot figure it out basically i want to name an array with a subscript ie world0[0] and world1[0] the 0/1 being a variable, i have tried to

RE: array numerical name...

2002-04-30 Thread Jackson, Harry
>-Original Message- >From: [EMAIL PROTECTED] > > > >Hi All - some interesting help - thanks drieux, chas, tim - all good >pointers to resolve. > >I still cannot get the array naming to print - let me simplify > >$h=0; >$TRY$h=3; >print "$TRY$h"; > >does not work - I have tried ${TRY\$h

RE: array numerical name...

2002-04-30 Thread Steven_Massey
Thats it Thanks Harry understand now.. "Jackson, Harry" <[EMAIL PROTECTED]> on 04/30/2002 11:07:39 AM To: [EMAIL PROTECTED] cc: Subject: RE: array numerical name... >-Original Message- >From: [EMAIL PROTECTED] > > > >Hi All - some

RE: array numerical name...

2002-04-30 Thread David Gray
> Hi all - should be simple - but I cannot figure it out > > basically i want to name an array with a subscript ie > world0[0] and world1[0] the 0/1 being a variable, i have tried to > produce a simple example > > For any help - thanks.. > ---

RE: array numerical name...

2002-04-30 Thread Jeff 'japhy' Pinyan
On Apr 30, David Gray said: >> Hi all - should be simple - but I cannot figure it out >> >> basically i want to name an array with a subscript ie >> world0[0] and world1[0] the 0/1 being a variable, i have tried to >> produce a simple example >> >> For any help - thanks.. >> --

Re: array numerical name...

2002-04-30 Thread bob ackerman
11:07:39 AM > > To: [EMAIL PROTECTED] > cc: > > Subject: RE: array numerical name... > > > > >> -Original Message- >> From: [EMAIL PROTECTED] >> >> >> >> Hi All - some interesting help - thanks drieux, chas, tim - all good

Re: array numerical name...

2002-04-30 Thread drieux
On Tuesday, April 30, 2002, at 03:07 , Jackson, Harry wrote: [..] > $TRY = "world"; > > $h = 0; > $TRY{$h}=3; > print "$TRY" . "$h" . " $TRY{$h}\n"; of course in 'use strict' it will whine that it does not want to allow you my $TRY{$h} = 3; and would prefer that you pre-declare

RE: array numerical name...

2002-04-30 Thread Jackson, Harry
>-Original Message- >From: drieux [mailto:[EMAIL PROTECTED]] > >On Tuesday, April 30, 2002, at 03:07 , Jackson, Harry wrote: >[..] >> $TRY = "world"; >> >> $h = 0; >> $TRY{$h}=3; >> print "$TRY" . "$h" . " $TRY{$h}\n"; > >of course in 'use strict' it will whine that it does not want >to

RE: array numerical name...

2002-04-30 Thread Timothy Johnson
inal Message- From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 30, 2002 8:47 AM To: David Gray Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: array numerical name... On Apr 30, David Gray said: >> Hi all - should be simple - but I cannot figure it o

RE: array numerical name...

2002-04-30 Thread Jeff 'japhy' Pinyan
On Apr 30, Jackson, Harry said: >Is the following more suitable or is it bollocks as well. > >my $TRY = "world"; >my $h = 0; > >my %TRY; >$TRY{$h}=3; >print "$TRY" . "$h" . " $TRY{$h}\n"; Well, except for the fact that $TRY and $TRY{$h} have nothing to do with each other... that is perfectly fin

Beyond Book Learning - the problem of Re: array numerical name...

2002-04-30 Thread drieux
On Tuesday, April 30, 2002, at 07:32 , David Gray wrote: [..] > my $fred = 'one,two,three,four'; > my $a = 0; > @{"array$a"} = split ',', $fred; > > for(0..3) { > print ${"array$a"}[$b] > } File "untitled text 2"; Line 21: Name "main::b" used only once: possible typo File "untitled text 2";

The Fine Art of Naming Things - Re: array numerical name...

2002-04-30 Thread drieux
On Tuesday, April 30, 2002, at 09:18 , Jackson, Harry wrote: > Is the following more suitable or is it bollocks as well. keeping timothy's kind and gentle rebuke in mind. { my complements timothy!!! } There are two sets of competing concerns: a) get the code to work b) hav

RE: Beyond Book Learning - the problem of Re: array numerical name...

2002-04-30 Thread David Gray
> On Tuesday, April 30, 2002, at 07:32 , David Gray wrote: > [..] > > my $fred = 'one,two,three,four'; > > my $a = 0; > > @{"array$a"} = split ',', $fred; > > > > for(0..3) { > > print ${"array$a"}[$b] > > } > > File "untitled text 2"; Line 21: Name "main::b" used only > once: possible > typo

RE: Beyond Book Learning - the problem of Re: array numerical name...

2002-04-30 Thread Timothy Johnson
"I also find that it's only more confusing to be sesquipedalian in response to posts that only need a simple, clear answer." Sesquipedalian is a pretty big word. :) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Beyond Book Learning - the problem of Re: array numerical name...

2002-04-30 Thread Chas Owens
On Tue, 2002-04-30 at 16:45, Timothy Johnson wrote: > > > "I also find that it's only more confusing to be sesquipedalian in response > to posts that only > need a simple, clear answer." > > Sesquipedalian is a pretty big word. :) > Come on now, we need to eschew obfuscation. -- Today is S

Re: Beyond Book Learning - the problem of Re: array numerical name...

2002-04-30 Thread drieux
On Tuesday, April 30, 2002, at 11:34 , David Gray wrote: [..] >> given the quandery: >> >>> basically i want to name an array with a subscript ie >>> world0[0] and world1[0] the 0/1 being a variable, i have tried to >>> produce a simple example >> >> why take the convolutions??? > >