in reply to Re^2: Variable name
in thread Variable name
Like I said: "Use of uninitialized value in print"
Sorry, but where exactly did you say that?
Hi allI am trying to concatenate a string and a value of a variable to construct the name of a known variable.
For example:
$foo="foo"; $bar="f"; print ${$bar.'oo'}should give out: "foo" but it doesn't.
Now, before you say anything, yes, I know, I should use a hash instead, but humor me, would you ?
Thanks
Noam
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Variable name
by MidLifeXis (Monsignor) on Dec 08, 2008 at 15:40 UTC |