JupiterHost.Net [JN], on Wednesday, September 15, 2004 at 16:52 (-0500) made these points:
>> my $foo = 'test'; >> my @bar = ( 'foo', '[%foo%]', 'bar' ); JN> The question would be why you're doing ${$1} since nothing in @bar is a JN> reference. I want change [%foo%] to $foo, so I expect in result 'test' as before defined. JN> I think you want: JN> $x =~ s/^\[%([^%]+)%\]$/$1/g; no, that gives me: foo foo bar and I don't want to. -- ...m8s, cu l8r, Brano. [Your Ex just called - she's with the IRS now] -=x=- Skontrolované antivírovým programom NOD32 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>