且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将输入作为标准输入通过管道传输到 src_block ?

更新时间:2023-11-18 09:06:10

您可以将 $rad#+results 块中直接传递给 perl 脚本:参见 将参数传递给手册中的代码块.

You can pass $rad directly to the perl script from a #+results block : see passing arguments to code blocks in the manual.

那会给

#+begin_src perl :results output :var rad=test-input

用作输入

#+results: test-input
:  12.5