From mboxrd@z Thu Jan 1 00:00:00 1970 From: D M German Subject: Re: [PATCH] bug in expansion of variables in babel Perl Date: Mon, 25 Feb 2013 13:54:37 -0800 Message-ID: <87bob8rrdu.fsf@mn.cs.uvic.ca> References: <87ppzq138q.fsf@mn.cs.uvic.ca> <87d2vphccc.fsf@Rainer.invalid> <87a9qsvifb.fsf@mn.cs.uvic.ca> Reply-To: dmg@uvic.ca Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:35718) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA60Y-0005JS-VJ for emacs-orgmode@gnu.org; Mon, 25 Feb 2013 16:54:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UA60U-0000ce-If for emacs-orgmode@gnu.org; Mon, 25 Feb 2013 16:54:50 -0500 Received: from mail-da0-f53.google.com ([209.85.210.53]:41862) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UA60U-0000cK-BC for emacs-orgmode@gnu.org; Mon, 25 Feb 2013 16:54:46 -0500 Received: by mail-da0-f53.google.com with SMTP id n34so941760dal.40 for ; Mon, 25 Feb 2013 13:54:45 -0800 (PST) In-Reply-To: (Achim Gratz's message of "Mon, 25 Feb 2013 12:48:08 +0000 (UTC)") 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 Achim> D M German uvic.ca> writes: >> I think the issue is that, at least in my computer the variable $\ >> returns empty (the record separator). Achim> Thinko on my side, what I wanted was the input record separator "$/" Achim> (to avoid Achim> specifying a literal newline for those systems where this is actually Achim> multi-character). Hi Achim, Once I changed it: (defvar org-babel-perl-wrapper-method "{ my @r = eval( q( %s )); open my $BO, qq(>%s) or die qq( Perl: Could not open output file.$\\ ); print $BO join($/, @r), $/ ; }") the result now has \n in between fields (literally): #+name: t_output_table #+begin_src perl :results table print "Test\n"; (1, 2) #+end_src #+RESULTS: t_output_table | 1\n2\n | what is the expected field separator for Org-babel? Achim> Regards, Achim> Achim. -- Daniel M. German "Prose is intrinsically linear; a good book carries the reader forward The Economist -> on the crest of the words" http://turingmachine.org/ http://silvernegative.com/ dmg (at) uvic (dot) ca replace (at) with @ and (dot) with .