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
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
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
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
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");
> }
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)";
> > }
> >
>
??
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
>-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
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
> 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..
> ---
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..
>> --
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
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
>-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
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
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
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";
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
> 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
"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]
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
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???
>
>
22 matches
Mail list logo