LoginSignup
1
0

More than 5 years have passed since last update.

ローカルディレクトリにあるcarton経由のモジュールが読み込めないとき

Last updated at Posted at 2017-02-08

作業用ディレクトリでcpanfileを書いてcarton installをして、作業用ディレクトリにモジュールが入ったにもかかわらず、実行時にそのモジュールが読み込めない理由がわからなかった。しばらくcpanmに逃げていたのだが、今日ようやくわかったのでメモ。

作業用ディレクトリで

$ carton exec ...

を実行すれば良い。例えば、

$ carton exec perl hoge.pl

$ carton exec plackup -r app.psgi

これで現在居るディレクトリにある、carton経由のモジュールを利用することができる。

perldocはちゃんと読め、ということですね。

1
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
1
0