>>>>> "GL" == Greg London <[EMAIL PROTECTED]> writes:
GL> I think you want to do a string eval.
GL> $i = 0;
GL> foreach my $var (@rray) {
GL> my $str = '$'.$var.'_'.$i.' = "put value here";';
GL> eval $str;
GL> die "eval error: $@" if ($@);
GL> $i++;
GL> }
ewww! string eval is never needed for simple stuff like that. in fact it
is rarely needed in general.
again, if you want to access something by a name, the term hash should
spring to mind.
uri
--
Uri Guttman ------ [EMAIL PROTECTED] -------- http://www.stemsystems.com
-- Stem is an Open Source Network Development Toolkit and Application Suite -
----- Stem and Perl Development, Systems Architecture, Design and Coding ----
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org