Re: Can we use string as variable name

2013-04-30 Thread Charles DeRykus
> On Tue, Apr 30, 2013 at 10:07 AM, Piyush Verma <114piy...@gmail.com> > wrote: > Hi,I want to use string as a variable name, please explain if there is any way > in perl. > ... This is a FAQ. See: http://perldoc.perl.org/perlfaq7.html#How-can-I-use-a-variable-as-a-variable-name ? -- Charles

Re: Can we use string as variable name

2013-04-30 Thread Lawrence Statton
On 04/30/2013 12:07 PM, Piyush Verma wrote: Hi, I want to use string as a variable name, please explain if there is any way in perl. Yes, there is a way. It is almost always a better idea to NOT do it that way, but to refactor your code to not require using a string as a variable name. P