Filename extensions

The extensions recommended for files with Raku content.
File contents Extension Historic extensions
Raku script .raku .pl, .p6
Raku module .rakumod .pm, .pm6
Raku documentation .rakudoc .pm, pm6, pod, pod6
Test files in raku .rakutest .t
Not Quite Perl (NQP) .nqp

Note that in most cases, the historic extensions will still work.

Introduction

An extension is the part of the filename after the final '.'; if no '.' is present, there is no extension.

Filename extensions can be used to associate behavior with the file content, such as opening a specialized reader or editor, running a program with the file content as input, etc. Even when it is not required by the operating system, filename extensions can provide a useful reminder about the contents of the file.

History

The Raku language was originally known as Perlย 6, and this is reflected in the historic column above. Please use the current extensions whenever possible when generating new code.

See Also

Raku by example 101

A basic introductory example of a Raku program

About the docs

How to contribute to Raku and to the documents, how to generate the docs locally

Brief introduction

Using Raku official documentation

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.