manpreet333 has asked for the wisdom of the Perl Monks concerning the following question:
I just joined this portal and this is my first question and it's kind of stupid. I have this situation where I have to use . (the concatenation operator) in a variable identifier. I tried escaping, but that didn't work.
This variable is being accessed by another script and I cannot change the name there.
Could anybody provide a workaround to having the "." in the variable name? I need it to be something like $app1.svr
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using . in variable name
by Corion (Patriarch) on Apr 17, 2015 at 07:02 UTC | |
|
Re: Using . in variable name
by GrandFather (Saint) on Apr 17, 2015 at 09:09 UTC | |
by manpreet333 (Initiate) on Apr 17, 2015 at 09:28 UTC | |
by Anonymous Monk on Apr 17, 2015 at 09:35 UTC | |
by manpreet333 (Initiate) on Apr 17, 2015 at 09:36 UTC | |
|
Re: Using . in variable name
by Laurent_R (Canon) on Apr 17, 2015 at 06:58 UTC | |
|
Re: Using . in variable name
by bitingduck (Deacon) on Apr 17, 2015 at 07:04 UTC | |
by manpreet333 (Initiate) on Apr 17, 2015 at 07:08 UTC | |
by Corion (Patriarch) on Apr 17, 2015 at 07:13 UTC | |
by bitingduck (Deacon) on Apr 17, 2015 at 07:24 UTC | |
by choroba (Cardinal) on Apr 17, 2015 at 08:01 UTC | |
by manpreet333 (Initiate) on Apr 17, 2015 at 09:03 UTC | |
by hippo (Archbishop) on Apr 17, 2015 at 09:36 UTC | |
| |
by Corion (Patriarch) on Apr 17, 2015 at 09:08 UTC |