* Small tutorial on how to use Perl within org
@ 2013-03-09 13:36 D M German
2013-03-09 14:24 ` Achim Gratz
2013-03-09 16:12 ` Thomas S. Dye
0 siblings, 2 replies; 5+ messages in thread
From: D M German @ 2013-03-09 13:36 UTC (permalink / raw)
To: emacs-orgmode
hi everybody,
I have created a small document that describes how to use perl within
org. Hopefully others will find it useful:
http://turingmachine.org/~dmg/emacs/examplePerl.org
--dmg
--
Daniel M. German
http://turingmachine.org/
http://silvernegative.com/
dmg (at) uvic (dot) ca
replace (at) with @ and (dot) with .
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Small tutorial on how to use Perl within org
2013-03-09 13:36 Small tutorial on how to use Perl within org D M German
@ 2013-03-09 14:24 ` Achim Gratz
2013-03-09 16:12 ` Thomas S. Dye
1 sibling, 0 replies; 5+ messages in thread
From: Achim Gratz @ 2013-03-09 14:24 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Small tutorial on how to use Perl within org
2013-03-09 13:36 Small tutorial on how to use Perl within org D M German
2013-03-09 14:24 ` Achim Gratz
@ 2013-03-09 16:12 ` Thomas S. Dye
2013-03-12 0:00 ` D M German
1 sibling, 1 reply; 5+ messages in thread
From: Thomas S. Dye @ 2013-03-09 16:12 UTC (permalink / raw)
To: dmg; +Cc: emacs-orgmode
Aloha dmg,
D M German <dmg@uvic.ca> writes:
> hi everybody,
>
> I have created a small document that describes how to use perl within
> org. Hopefully others will find it useful:
>
> http://turingmachine.org/~dmg/emacs/examplePerl.org
Nice.
It would be great to use this document as the basis of ob-doc-perl.
Perl is one of about 20 languages that need to be documented at
http://orgmode.org/worg/org-contrib/babel/languages.html.
Note that there is a template that helps create a "standard" language
document:
http://orgmode.org/w/?p=worg.git;a=blob;f=org-contrib/babel/languages/ob-doc-template.org;hb=HEAD
I don't know the first thing about Perl, but I'll be happy to help if
there are questions about getting to ob-doc-perl from the template.
All the best,
Tom
--
Thomas S. Dye
http://www.tsdye.com
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-03-12 0:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-09 13:36 Small tutorial on how to use Perl within org D M German
2013-03-09 14:24 ` Achim Gratz
2013-03-09 16:12 ` Thomas S. Dye
2013-03-12 0:00 ` D M German
2013-03-12 0:44 ` Thomas S. Dye
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).