> From: Kevin Viel [mailto:[EMAIL PROTECTED] > Sent: Friday, March 02, 2007 09:10 > To: beginners@perl.org > Subject: Compound variable names > > Greetings, > > I have been struggling with this one for a while. How can > I create a > variable name composed of two or more variables? I suspect I > have to I > have to use a reference: > > my $var1 = "part" ; > my $var2 = "2" ; > > my $compound = $var1_$var2 ; > > Thanks, > > Kevin > > > -- > Kevin Viel > Department of Genetics [EMAIL PROTECTED] > Southwest Foundation for Biomedical Research phone: (210)258-9884 > P.O. Box 760549 fax: (210)258-9444 > San Antonio, TX 78245-0549 > > Kevin Viel > PhD Candidate > Department of Epidemiology > Rollins School of Public Health > Emory University > Atlanta, GA 30322 > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > http://learn.perl.org/ > > >
Setup a hash and use the combined variable names as the key. Control the case as you create and read and you are in the control seat then. If you have any problems or questions, please let me know. Thanks. Wags ;) David R Wagner Senior Programmer Analyst FedEx Freight 1.408.323.4225x2224 TEL 1.408.323.4449 FAX http://fedex.com/us > -----Original Message----- ********************************************************************** This message contains information that is confidential and proprietary to FedEx Freight or its affiliates. It is intended only for the recipient named and for the express purpose(s) described therein. Any other use is prohibited. ********************************************************************** -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/