• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

quick perl question

The Dancing Peacock

Diamond Member
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.
 
Back
Top