[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] bug in expansion of variables in babel Perl
From: |
Achim Gratz |
Subject: |
Re: [O] [PATCH] bug in expansion of variables in babel Perl |
Date: |
Tue, 26 Feb 2013 11:13:59 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
D M German <dmg <at> 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
<<prefix>>
&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.