From: Achim Gratz <Stromeko@nexgo.de>
To: emacs-orgmode@gnu.org
Subject: Re: Small tutorial on how to use Perl within org
Date: Sat, 09 Mar 2013 15:24:33 +0100 [thread overview]
Message-ID: <87d2v8wt0e.fsf@Rainer.invalid> (raw)
In-Reply-To: 87r4joy9t6.fsf@mn.cs.uvic.ca
D M German writes:
> http://turingmachine.org/~dmg/emacs/examplePerl.org
Nice, would you consider contributing it to Worg? I'd like to ask you
to update your Org and that description to the extra features I've
recently implemented for Perl.
--8<---------------cut here---------------start------------->8---
#+name: eg
| col1 | col2 |
|------+------|
| a | c |
| b | d |
#+name: hello
#+header: :var x = eg
#+header: :results output
#+BEGIN_SRC perl
print qq(Hi Mom!$/I'm home.)
#+END_SRC
#+RESULTS: hello
: Hi Mom!
: I'm home.
#+name: table-passthrough
#+header: :colnames nil
#+header: :var x = eg
#+begin_src perl
# Look Ma, no code!
#+end_src
#+RESULTS: table-passthrough
| col1 | col2 |
|------+------|
| a | c |
| b | d |
#+name: number-tablerows
#+header: :colnames no
#+header: :var x = eg
#+begin_src perl
my $i = 0;
foreach my $row (@$x) {
unshift $row, $i++;
}
$x;
#+end_src
#+RESULTS: number-tablerows
| 0 | col1 | col2 |
| 1 | a | c |
| 2 | b | d |
--8<---------------cut here---------------end--------------->8---
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
SD adaptation for Waldorf microQ V2.22R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada
next prev parent reply other threads:[~2013-03-09 14:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-09 13:36 Small tutorial on how to use Perl within org D M German
2013-03-09 14:24 ` Achim Gratz [this message]
2013-03-09 16:12 ` Thomas S. Dye
2013-03-12 0:00 ` D M German
2013-03-12 0:44 ` Thomas S. Dye
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d2v8wt0e.fsf@Rainer.invalid \
--to=stromeko@nexgo.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).