确定这是主要的文件是如何使用的包括PM文件如何包含在Perl中使用时文件
use Dancer;
use Net::OAuth2::Client;
use HTTP::Request::Common;
sub client {
Net::OAuth2::Client->new(
'0', # OAuth 2.0 client_id
'1234567890abcdef', # OAuth 2.0 client_secret
site => 'http://www.deviantart.com',
authorize_path => 'https://www.deviantart.com/oauth2/draft15/authorize?response_type=code',
access_token_path => 'https://www.deviantart.com/oauth2/draft15/token?grant_type=authorization_code',
access_token_method => 'GET',
)->web_server(
redirect_uri => uri_for('/auth/deviantart/callback')
);
}
我已经把那些PM文件在同一目录中这一点,但因为找不到
失败这些文件是这样开始的
package Net::OAuth2::Client;
package HTTP::Request::Common;
package Dancer;
实际上,它可以是'@ INC'列表中的任何目录。 '@ INC'通常包含当前目录,因此它们也可以是当前目录下的子目录。 – 2013-02-14 20:21:22