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 error.
bash-2.05$ ./test.1.pl
Can't modify concatenation (.) or string in scalar assignment at ./test.1.pl 
line 14, near ""This is test\n";"
Execution of ./test.1.pl aborted due to compilation errors.

Anyone have comments on how I can accomplish this?
Thanks
Ravi


 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to