JupiterHost.Net [JN], on Wednesday, September 15, 2004 at 17:21 (-0500) made these points:
JN> Then you need to do 'no strict;' before you do that: JN> no strict; JN> $x =~ s/^\[%([^%]+)%\]$/${$1}/g; JN> use strict; I think turning off strict is bad idea, also, that doesn't work either. JN> Why not just use the Template module, it does what it looks like you're JN> trying to do already without reinventing the wheel :) I like to do that without that module, it can't be so hard... JN> or if its literally foo JN> then JN> for(@bar) { s/\[\%foo\%\]/\Q$foo\E/g; } it isn't of course only foo. I am parsing ini file, which looks like: [ini] foo=test bar=foo [%foo%] bar and of course, I want to get (after using some config module) $bar='foo test bar' -- ...m8s, cu l8r, Brano. [All taglines are busy..... One will be with you momentarily...] -=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>