in reply to Re^2: Using . in variable name
in thread Using . in variable name
Maybe I didn't understand the problem as you stated it.
Can you maybe take a step back and tell us the problem you're trying to solve? If you're calling another script, that script is likely invoked via system or exec. Maybe you don't want to use a variable name but a variable value?
You can append a value to a string by using dot itself, or by using double quotes:
print "$app.svr\n"; print $app . ".svr\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Using . in variable name
by bitingduck (Deacon) on Apr 17, 2015 at 07:24 UTC | |
by choroba (Cardinal) on Apr 17, 2015 at 08:01 UTC | |
|
Re^4: Using . in variable name
by manpreet333 (Initiate) on Apr 17, 2015 at 09:03 UTC | |
by hippo (Archbishop) on Apr 17, 2015 at 09:36 UTC | |
by Anonymous Monk on Apr 17, 2015 at 09:39 UTC | |
by Corion (Patriarch) on Apr 17, 2015 at 09:08 UTC |