On Apr 30, Jackson, Harry said: >Is the following more suitable or is it bollocks as well. > >my $TRY = "world"; >my $h = 0; > >my %TRY; >$TRY{$h}=3; >print "$TRY" . "$h" . " $TRY{$h}\n";
Well, except for the fact that $TRY and $TRY{$h} have nothing to do with each other... that is perfectly fine. You might want to use an array instead of a hash, though, if you're using numbers to differentiate between variables. my @foo; my $i = 0; $foo[$i] = "bar"; -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. [ I'm looking for programming work. If you like my work, let me know. ] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]