AW: AW: Variable variable names

2010-11-03 Thread HACKER Nora
Hi Shlomi, > > In your opinion, what should the hash mentioned in your first > > paragraph contain? > > It should contain data specific to every $lang/$kurz pair (whatever $kurz is - I > don't speak German, and one should use English identifiers in one's code.). > The keys would be either $lang o

Re: AW: Variable variable names

2010-11-02 Thread Shlomi Fish
Hi Nora, On Tuesday 02 November 2010 10:38:03 HACKER Nora wrote: > Hi Shlomi, > > > Instead of calling your variables $sql_$kurz and $sth_$kurz, etc. put > > them in > > > %umg hash or a different one - possibly referenced by keys of a hash > > reference or slots of an object: > > > > {{{ > >

AW: Variable variable names

2010-11-02 Thread HACKER Nora
Hi Shlomi, > Instead of calling your variables $sql_$kurz and $sth_$kurz, etc. put them in > %umg hash or a different one - possibly referenced by keys of a hash > reference or slots of an object: > > {{{ > my $lang_sql = $runtime_data{$lang} = NoraSqlObject->new; > > $lang_sql->sql( > "s

Re: Variable variable names

2010-10-29 Thread Shlomi Fish
Hi Nora, On Friday 29 October 2010 07:23:13 HACKER Nora wrote: > Hello, > > In the below code I am desperately trying to accomplish the valid use of > variable variable names but still fail. I have already read many sites, > tutorials, mailing list posts, all saying th

Variable variable names

2010-10-28 Thread HACKER Nora
Hello, In the below code I am desperately trying to accomplish the valid use of variable variable names but still fail. I have already read many sites, tutorials, mailing list posts, all saying that this is best accomplished by using a hash. Please would you tell me if I understood that

Re: been a while - variable variable names

2002-05-23 Thread drieux
On Thursday, May 23, 2002, at 05:39 , Michael Carmody wrote: > How do I define variable variable names ? > > I have an array that contains the header cells of some long columns, from > which i want to create new arrays which are called by the names in the > array. > > e.g

been a while - variable variable names

2002-05-23 Thread Michael Carmody
I haven't coded in perl for far too long... that aside.. How do I define variable variable names ? I have an array that contains the header cells of some long columns, from which i want to create new arrays which are called by the names in the array. e.g. @header = (Name, Address,

Re: variable variable-names

2001-10-02 Thread Michael Kelly
> From: The Black Man <[EMAIL PROTECTED]> > Date: Tue, 2 Oct 2001 15:14:50 -0700 (PDT) > To: [EMAIL PROTECTED] > Subject: variable variable-names > > Hi all, > > I'm trying to write a script that will pull out values > for form data radio buttons for muli

Re: variable variable-names

2001-10-02 Thread Roger Morris
I didn't use this with perl, it was with php. however, I used Blah Blah Then in the php I had a loop that went through the values of answer At 03:14 PM 10/2/2001 -0700, The Black Man wrote: >Hi all, > >I'm trying to write a script that will pull out values >for form data radio buttons for mul

variable variable-names

2001-10-02 Thread The Black Man
Hi all, I'm trying to write a script that will pull out values for form data radio buttons for muliple answers. This is what a standard line looks like: Blah For each question I've tried to make up a separate set of arrays containing the button values: open (QUES, ") { chomp $line; if

Re: How to implement Variable variable names?

2001-05-03 Thread Michael Lamertz
Me ([EMAIL PROTECTED]) wrote: > > [symbolic references are] a bad idea. > > I've not seen this expressed in, say, the Camel. I missed the message you quoted above, so I reply to you, even if you don't said this :-) (I hope that's not too off-topic here, but a bit of advocacy sometimes doesn't h

Re: How to implement Variable variable names?

2001-05-03 Thread Me
> > > You can actually execute the above php code > > > under perl and it will work! > > > > > > (You need to add > > > > > > sub echo ($) { print shift } > > > > > > at the start to let perl know what to do with > > > echo, or you could just replace 'echo' with > > > 'print'.) > [symbolic re

Re: How to implement Variable variable names?

2001-05-03 Thread M.W. Koskamp
- Original Message - From: M.W. Koskamp <[EMAIL PROTECTED]> To: Me <[EMAIL PROTECTED]>; Christodoulou Demetris <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, May 03, 2001 10:52 AM Subject: Re: How to implement Variable variable names? > > -

Re: How to implement Variable variable names?

2001-05-03 Thread M.W. Koskamp
- Original Message - From: Me <[EMAIL PROTECTED]> To: Christodoulou Demetris <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, May 03, 2001 10:26 AM Subject: Re: How to implement Variable variable names? > > Hi, > > I am writing an application w

Re: How to implement Variable variable names?

2001-05-03 Thread Me
> Hi, > I am writing an application where i have to read > from a file variable names and variable values. > Is there is a way to use Variable Variables with > the same way used in php? > For example: > $a = "hello"; > $$a = "world"; > where echo "$a ${$a}"; and echo "$a $hello"; would output

How to implement Variable variable names?

2001-05-03 Thread Christodoulou Demetris
Hi, I am writing an application where i have to read from a file variable names and variable values. Is there is a way to use Variable Variables with the same way used in php? For example: $a = "hello"; $$a = "world"; where echo "$a ${$a}"; and echo "$a $hello"; would output the same. Thanks