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???
>
>
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
"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 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
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 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
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 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";
>-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
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
h; # we have created a new variable with a name created
from 2 other variables
$$tryvar = 'value of new var';
print $$tryvar; # and of course, print $tryvar shows you the name of
that variable
>
>
>
> "Jackson, Harry" <[EMAIL PROTECTED]> on 04/30/2002
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..
>> --
> 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..
> ---
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
>-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
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} also
any ideas ??? what am I missing ??
Thanks
[EMA
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)";
> > }
> >
>
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 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: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
I think you may be barking up a branch of the right tree... It looks like
what you REALLY want is an array of arrays. Check out 'perldoc perllol'
and/or look up perl array of arrays in your favorite search engine, and that
should get you started.
-Original Message-
From: [EMAIL PROTECT
21 matches
Mail list logo