On Sep 30, Jenda Krynicky said: >$text =~ s{$regexp}{ > my $tagname = $1; > my %params = ('' => '%'); > my $i = 2; > no strict 'refs'; > while (defined ${$i}) { > $params{${$i}} = ${$i+1}; > ... > $i+=2; > } > ... >}ge > > >The ${$i} and ${$i+1} is the thing I do not like.
Why not? Perl allows you to 'no strict "refs"' for a reason. This might be that reason. Otherwise, use the @- and @+ arrays like I suggested. -- 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]