0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Raku (perl6) の使い方

Posted at

処理系のインストール

sudo apt install rakudo

バージョンの確認

$ perl6 --version
This is Rakudo version 2018.12 built on MoarVM version 2018.12
implementing Perl 6.d.

サンプルプログラム

hello.raku
# ! /usr/bin/perl6
#
say '*** start ***';
say 'Hello World!';
my $aa = 12;
my $bb = 34;
my $sum = $aa + $bb;
say $aa,"\t",$bb,"\t",$sum;
say '*** end ***';

実行結果

$ ./hello.raku 
*** start ***
Hello World!
12      34      46
*** end ***
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?