It works, but only in a global scope. ie placing 'my' infront of $$_ breaks everything. Help would be appreciated. Thanks@names = ('peter','jonah','larry'); foreach (@names) { $$_ = "i like $_"; } print "$peter \n $jonah \n $larry \n";
In reply to Assigning variables via looping by markusk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |