To maintain the historically established tradition, we begin by considering a simple program in Refal Plus.
$use StdIO;  // Import i/o functions from the module StdIO
$func Main = e;  // Declare the format of the main function:
                 // empty as input, anything as output.
Main             // Define the main function
    = <PrintLn "Hello!">; // Print a line
    $use StdIO;
 states that the program is going
      to use library input/output functions, which are to be imported from the module
      StdIO. The second directive declares the format of the function Main: what
      is what it can accept as input, and what it will produce as output. The third directive is the
      definition of the function Main, and, by convention, the execution of a
      Refal Plus program always begins by evaluating the call to the function
      Main.
    Hello!
 followed by the character "new line", to be sent to the
      standard output device. Then the execution of the program terminates.