#!/usr/bin/perl $x_point = "total[26]"; $total[26] = "foo"; $result = eval "\$$x_point"; print "result=$result\n"; # foo
but having to do this at all usually is an indication of a design problem in the first place :)
In reply to Re: indirect use of array field?
by almut
in thread indirect use of array field?
by gavla
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |