Consider the following perl fragment in org-babel that uses <STDIN>.
** Ans 2
use Math::Trig;
$rad = <STDIN>;
$circumference = 2*pi*$rad;
print "Circumference of circle is $circumference";
Can I connect the input to this block from another block?
Say:
#+begin_src text :name test-input
12.5
#+end_src
source
share