Solved

Trouble in installing Parse::DecDescent module.

Posted on 2006-11-15
3
680 Views
Last Modified: 2012-06-27
Dear Expert,

In  order to use Spreadsheet-WriteExcel, I need to install Parse::DecDescent module. In its readme file, it tells how to install:
---------------------------------------------------------------------------------------
INSTALLATION

    It's all pure Perl, so just put the .pm files in their appropriate
    local Perl subdirectories.
---------------------------------------------------------------------------------------

What is this local Perl subdirectories? I just put DecDescent.pm file in any one of these three directories
\usr\lib\perl5\site_perl\5.8\Spreadsheet\
\usr\lib\perl5\site_perl\5.8\Spreadsheet\WriteExcel
usr\lib\perl5\vendor_perl\5.8\
 it doesn't work for me.

I wrote a test.pl:
#!/usr/bin/perl -w

#use strict;
use Spreadsheet::WriteExcel;

 # Create a new Excel workbook
    my $workbook = Spreadsheet::WriteExcel->new("perl.xls");

    # Add a worksheet
    $worksheet = $workbook->add_worksheet();

    #  Add and define a format
    $format = $workbook->add_format(); # Add a format
    $format->set_bold();
    $format->set_color('red');
    $format->set_align('center');

    # Write a formatted and unformatted string, row and column notation.
    $col = $row = 0;
    $worksheet->write($row, $col, "Hi Excel!", $format);
    $worksheet->write(1,    $col, "Hi Excel!");

    # Write a number and a formula using A1 notation
    $worksheet->write('A3', 1.2345);
    $worksheet->write(3,    $col, "Excel!");
    $worksheet->write('A4', '=SIN(PI()/4)');

When I run test.pl, it always complaints:
The Parse::RecDescent module must be installed in order to write Excel formula.
So it seems that it can not find DecDescent.pm, where should DecDescent.pm be put?

Thanks.
Hanqian  
0
Comment
Question by:Hanqian
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 39

Accepted Solution

by:
Adam314 earned 50 total points
ID: 17948752
\usr\lib\perl5\site_perl\5.8\Parse\RecDescent.pm

0
 

Author Comment

by:Hanqian
ID: 17948875
It works now. Thanks to Adam314.

Hanqian
0
 
LVL 39

Expert Comment

by:Adam314
ID: 17948930
typo: \usr\lib\perl5\site_perl\5.8\Parse\DecDescent.pm
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question