Re: How to create a string from value of another variable.

2006-11-29 Thread John W. Krahn
Ravi Malghan wrote: > Hi: Hello, > I have a variable called $agent_id and want to create a string with the > value of $agent_id followed by "-str". The following does not seem to work. > The following example I want to create a variable called $35-str. Numerical variable names are reserved for

Re: How to create a string from value of another variable.

2006-11-29 Thread Paul Johnson
On Wed, Nov 29, 2006 at 01:37:29PM -0800, Ravi Malghan wrote: > Hi: I have a variable called $agent_id and want to create a string with the > value of $agent_id followed by "-str". The following does not seem to work. > The following example I want to create a variable called $35-str. > > $agent

Re: How to create a string from value of another variable.

2006-11-29 Thread Omega -1911
On 11/29/06, Ravi Malghan <[EMAIL PROTECTED]> wrote: Hi: I have a variable called $agent_id and want to create a string with the value of $agent_id followed by "-str". The following does not seem to work. The following example I want to create a variable called $35-str. $agent_id = 25; $agent_i

How to create a string from value of another variable.

2006-11-29 Thread Ravi Malghan
Hi: I have a variable called $agent_id and want to create a string with the value of $agent_id followed by "-str". The following does not seem to work. The following example I want to create a variable called $35-str. $agent_id = 25; $agent_id."-str" = "This is test\n"; I get the following erro