はじめに
2026年にPerlを始めたいときに整えた環境とコードの覚書です
環境
-
MacOS Sequoia 15.7.7
-
Perl5
-
VSCode
-
IntelliJ Ultimate
-
Perl Plugis https://plugins.jetbrains.com/plugin/7796-perl
MacbookはPerl 5が標準搭載でした。
ykmaclocal:perlstudy yuko$ perl -v
This is perl 5, version 34, subversion 1 (v5.34.1) built for darwin-thread-multi-2level
(with 2 registered patches, see perl -V for more detail)
Copyright 1987-2022, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
Perl5 SDKのパスを設定
Perl5 SDK is not configured と表示されるので、Local add system Perl を選びMacにインストールされたPerlを選択
IntelliJのセットアップ
Perl Plugis https://plugins.jetbrains.com/plugin/7796-perl をインストール
Perlスクリプトを実行
足し算やHello Worldを実行できればセットアップ終了です。
画像がCORSでアップロードできないのでこれで以上です。