Skip to contents

View the corresponding perl.Rmd file to learn more about how this page was generated.

Create a function in Perl.

Welcome to 𝐑𝐚𝐤𝐮𝐝𝐨™ v2021.04.
Implementing the 𝐑𝐚𝐤𝐮™ programming language v6.d.
Built on MoarVM version 2021.04.
 
To exit type 'exit' or '^D'
> sub hello($name = "World") {
*   say "Hello, $name!"
* }
&hello

Use function in a later chunk.

> hello()
Hello, World!
> hello('R Markdown')
Hello, R Markdown!

View the corresponding perl.Rmd file to learn more about how this page was generated.