On Mon, 6 Dec 2004, Bryan R Harris wrote: > > Can you do this: > > > > $var =~ s/\{([^}]*)\}/$v = $1; $v =~ s!,!|!g; qq!($v)!/ge; > > Holy cow, is that legal??!! It took me at least 30 seconds just to > figure out that those commands were inside the s/// command.
See the 'e' at the end of the s/// block? That turns on Execution of the code contained inside the right-hand-side of the substitution statement. Useful trick, sometimes... -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>