- Dec 22, 1999
- 3,385
- 0
- 0
I have 5 variables that are used in the name of another variable.
$filename = "blah.blah.var.1.blah.var2.var3.var4.var5.blah.blah";
I want to do my variable declarations before the subroutine that gets the values for the 5 variables. I know that I could just do:
var1 = ""; va2 = ""; etc... etc...
Is there an elegant and cleaner way to do this. my perl book is too far away from me too look for it? Plus it's late and I'm tired.
$filename = "blah.blah.var.1.blah.var2.var3.var4.var5.blah.blah";
I want to do my variable declarations before the subroutine that gets the values for the 5 variables. I know that I could just do:
var1 = ""; va2 = ""; etc... etc...
Is there an elegant and cleaner way to do this. my perl book is too far away from me too look for it? Plus it's late and I'm tired.