>>>>> "JLR" == James Linden Rose, <[EMAIL PROTECTED]> writes:
JLR> Can somebody remind me of how you can take an array full of names and
JLR> turn them into variable names?
JLR> Simplified from reality, I want to do something like this:
JLR> $i = 0;
JLR> foreach (@rray) {
JLR> $$_ = $i;
JLR> $i++;
JLR> }
JLR> Where the result is a variable named $name_1, $name_2, ... $name_n.
please don't use symbolic references for that. use a hash. it is just as
easy and much safer. read
http://perl.plover.com/varvarname.html
and its followup articles for more on why that is bad.
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