From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: [PATCH] bug in expansion of variables in babel Perl Date: Tue, 26 Feb 2013 11:13:59 +0000 (UTC) Message-ID: References: <87ppzq138q.fsf@mn.cs.uvic.ca> <87d2vphccc.fsf@Rainer.invalid> <87a9qsvifb.fsf@mn.cs.uvic.ca> <87bob8rrdu.fsf@mn.cs.uvic.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:42307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAIUF-0006a0-QZ for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 06:14:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UAIUE-0005cH-IG for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 06:14:19 -0500 Received: from plane.gmane.org ([80.91.229.3]:54001) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UAIUE-0005c8-Bq for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 06:14:18 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UAIUY-00041b-9P for emacs-orgmode@gnu.org; Tue, 26 Feb 2013 12:14:38 +0100 Received: from 217.10.52.10 ([217.10.52.10]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Feb 2013 12:14:38 +0100 Received: from Stromeko by 217.10.52.10 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Feb 2013 12:14:38 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org D M German uvic.ca> writes: > print $BO join($/, @r), $/ ; Sorry, this should really be: print $BO join(qq($/), @r), qq($/); Anyway, I think I'll have to rework the wrapper to be an anonymous subroutine so that the (reasonably expactable) "return @foo;" at the end of the program (or in the middle if so desired) continues to work. Also, I just checked that noweb syntax does work for code execution, so the prefix you wanted to have is easy enough to add via Library of Babel: #+name: prefix #+begin_src perl # Santa's little helpers #+end_src #+begin_src perl :noweb yes <> &help(); #+end_src In light of this, I think we should not implement the "preface" change as its effects can be had without obscuring things too much. Regards, Achim.