our $file1 ="tom"; our $file2 = "bob"; our $file3 = "joe"; my @names =( "file1", "file2", "file3" ); $ref=\@names; $file=$ref->[0]; print ${$file};
In reply to Re: storing variable names in an array
by dReKurCe
in thread storing variable names in an array
by scifiaddict
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |