我正在尝试使用 Dancer 创建示例 Web 服务。我使用 Ubuntu 10.04 作为我的操作系统。我使用 CPAN 客户端安装了 Dancer 和依赖项,也可以这样做
dancer -a MyApp
但是,当我尝试运行 app.pl 文件时,代码会抛出一个错误,提示找不到 YAML.pm。我确定在安装依赖项时下载了此文件。A有几个问题:-
1. Where does CPAN put all these files which were downloaded? How are they included in the @INC?
2. For using Dancer, do I have to manually include all the files in @INC?
我试图通过在@INC 中包含 Dancer.pm 路径来创建一个非常简单的 perl dancer 应用程序,向世界打招呼。但是,由于缺少某些或其他依赖项,它一直失败。
帮助我理解我做错了什么?