On Mon, 29 Jul 2002, Janek Schleicher wrote: > > > 1.) First of all, I'm unhappy with the '~' I had to plug in so $funcs{$func}~[$1] >would not be > > considered as a ref to an array. Is there a better way to stop Perl from >misinterpreting this? I > > need the []-braces since arguments to functions in mathematica are always enclosed >in such > > braces. > > You could try something like > > s/foo/$funcs{$func} . "[$1]"/e; > > > Best Wishes, > Janek >
Thanks, that works. I tried concatenating and using /e as well before but I forgot to add the doublequotes around the [$1]. Kay -------------------------------------------------------------------- Kay Bieri Sidlerstr. 5, 3012 Bern Switzerland email: [EMAIL PROTECTED] phone: +41 (031) 631 8682 -------------------------------------------------------------------- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]