Arch Linux で perl6 をインストールしてみた
まだ Perl6 の文法もわかっていないんですが、Perl6 を触ってみたくなったのでインストールしてみましょう。
perl6 で検索すると:
% yaourt -Ss perl6
aur/perl-padre-plugin-perl6 0.71-1 (0)
Padre::Plugin::Perl6 - Perl 6 Support for Padre
aur/perl-parse-method-signatures 1.003016-1 (1)
Perl6 like method signature parser
aur/perl-perl6-doc 0.47-2 (0)
Perl6::Doc - Perl 6 documentation
aur/perl-perl6-export 0.07-2 (0)
Perl6::Export - Implements the Perl 6 'is export(...)' trait
aur/perl-perl6-export-attrs 0.000004-1 (0)
The Perl 6 'is export(...)' trait as a Perl 5 attribute
aur/perl-perl6-form 0.04-2 (1)
Perl6::Form - Implements the Perl 6 'form' built-in
aur/perl-perl6-perldoc 0.000009-1 (0)
Perl6::Perldoc - Use Perl 6 documentation in a Perl 5 program
aur/perl-perl6-perldoc-to-ansi 0.11-2 (0)
Perl6::Perldoc::To::Ansi - ANSI-colored text renderer for Perl6::Perldoc
aur/perl6-avro 0.1.1-2 (0)
Perl6 Avro Data Serialization
aur/perl6-compress-zlib 1.0.0-2 (0)
Nicer zlib interface
aur/perl6-compress-zlib-raw 1.0.0-2 (0)
Low-level bindings to zlib
aur/perl6-config-toml 0.0.1-3 (0)
TOML parser for Perl 6
aur/perl6-debugger-ui-commandline 0.0.1-4 (0)
Command-line debugger frontend for Rakudo
aur/perl6-digest 0.3.4-3 (0)
Pure perl6 implementation of SHA-256 and RIPEMD-160 digests
aur/perl6-digest-xxhash 0.0.1-5 (0)
Perl 6 bindings for xxHash
aur/perl6-file-find 0.1-2 (0)
File::Find for Perl 6
aur/perl6-find-bundled 1.0.0-3 (0)
A replacement for %?RESOURCE
aur/perl6-grammar-debugger 0.0.1-4 (0)
Simple tracing and debugging support for Perl 6 grammars
aur/perl6-gumbo 0.0.1-2 (0)
Binding of the gumbo C library, a html parser lib
aur/perl6-html-parser 0.1-2 (0)
Role for HTML parsing
aur/perl6-html-parser-xml 0.0.1-2 (0)
Parses HTML to produce an XML::Document
aur/perl6-json-class 0.0.2-3 (0)
Role to provide simple serialisation/deserialisation of objects to/from
JSON
aur/perl6-json-fast 0.3-3 (0)
A naive, fast json parser and serializer
aur/perl6-json-marshal 0.0.3-2 (0)
Simple serialisation of objects to JSON
aur/perl6-json-name 0.0.1-2 (0)
Provides a trait to store an alternative JSON Name
aur/perl6-json-path 0.0.1-2 (0)
Implementation of the JSONPath data structure query language
aur/perl6-json-tiny 0.0.1-4 (0)
A tiny JSON parser and emitter for Perl 6 on Rakudo
aur/perl6-json-unmarshal 0.03-2 (0)
Turn JSON into objects
aur/perl6-panda 2015.12.r0.g4709e93-1 (0)
Perl 6 module manager.
aur/perl6-pod-to-html 0.0.1-4 (0)
Convert Perl 6 Pod to HTML
aur/perl6-readline 0.0.1-1 (0)
Perl 6 interface to GNU Readline
aur/perl6-shell-command 0.0.1-2 (0)
Common shell command replacements
aur/perl6-terminal-ansicolor 0.0.1-5 (0)
Colorize terminal output
aur/perl6-uri 0.1.1-4 (0)
A URI implementation using Perl 6 grammars to implement RFC 3986 BNF
aur/perl6-xml 0.0.1-2 (0)
An Object-Oriented XML Library for Perl 6
aur/rakudo 2015.12-1 (33)
Perl6 compiler for MoarVM
aur/rakudo-star 2015.06-1 (12)
Rakudo Perl6 on MoarVM with additional modules
こんなに出てきますが、多分、rakudo がそれなのではないでしょうか。
っていうか、perl6 のモジュール、もうこんなにあるんですね。
which
してみましょう:
% which perl6
/sbin/perl6
ありましたね。
さて、へろーわーるどといきましょう。
% mkdir ./hello-perl6
% cd ./hello-perl6
% emacsclient ./hello.pl
こんな風に打って……
# hello.pl use v6; say 'Hello, World!';
perl6 で実行すると:
% perl6 ./hello.pl
Hello, World!
(・∀・)イイネ!!