I want to add and use a perl module called Finance::Quote using CPAN.
This is the first module that I had tried to add using CPAN.
I am doing this on my mac book pro that is running perl version 5.8 on mac osx (10.5.8, 2.4Ghz Intel Dual Core 2 Duo)
I am getting the following errors, try to run this test script:
#!/usr/bin/perl
# import module
use Finance::Quote;
# create object
my $q = Finance::Quote->new();
# retrieve stock quote
my %data = $q->fetch('nyse', 'XYZ');
# print price
print "The current price of XYZ on the NYSE is " . $data{'XYZ', 'price'};
Screen output error msg:
./perltestfin.pl
Can't locate Finance/Quote.pm in @INC (@INC contains: /Library/Perl/Updates/5.8.8 /System/Library/Perl/5.8.8/darwin-thread-multi-2level /System/Library/Perl/5.8.8 /Library/Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8 /Library/Perl /Network/Library/Perl/5.8.8/darwin-thread-multi-2level /Network/Library/Perl/5.8.8 /Network/Library/Perl /System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.8 /Library/Perl/5.8.6 /Library/Perl/5.8.1 .) at ./perltestfin.pl line 4.
BEGIN failed--compilation aborted at ./perltestfin.pl line 4.
What do I need to do to configure this properly? Thanks!
This is the first module that I had tried to add using CPAN.
I am doing this on my mac book pro that is running perl version 5.8 on mac osx (10.5.8, 2.4Ghz Intel Dual Core 2 Duo)
I am getting the following errors, try to run this test script:
#!/usr/bin/perl
# import module
use Finance::Quote;
# create object
my $q = Finance::Quote->new();
# retrieve stock quote
my %data = $q->fetch('nyse', 'XYZ');
# print price
print "The current price of XYZ on the NYSE is " . $data{'XYZ', 'price'};
Screen output error msg:
./perltestfin.pl
Can't locate Finance/Quote.pm in @INC (@INC contains: /Library/Perl/Updates/5.8.8 /System/Library/Perl/5.8.8/darwin-thread-multi-2level /System/Library/Perl/5.8.8 /Library/Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8 /Library/Perl /Network/Library/Perl/5.8.8/darwin-thread-multi-2level /Network/Library/Perl/5.8.8 /Network/Library/Perl /System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.8 /Library/Perl/5.8.6 /Library/Perl/5.8.1 .) at ./perltestfin.pl line 4.
BEGIN failed--compilation aborted at ./perltestfin.pl line 4.
What do I need to do to configure this properly? Thanks!