I want to create an array whose name is the name of a scalar.
For instance, if I have:
$name = "arrayname";
I want to use $name to name my array rather than call it @arrayname.
It looks strange but it makes sense in my context as the value of the scalar $name will vary in a loop.
I have tried @\$name but it does not work.
Is it possible to do that ??
U.
For instance, if I have:
$name = "arrayname";
I want to use $name to name my array rather than call it @arrayname.
It looks strange but it makes sense in my context as the value of the scalar $name will vary in a loop.
I have tried @\$name but it does not work.
Is it possible to do that ??
U.