- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to use Perl Module Spreadsheet::WriteExcel...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2007 07:50 AM
тАО04-13-2007 07:50 AM
I have installed the perl module, do I need to do anything else like installing in Perl module using following commands or how it creates the excel files.
******************************
perlmodlib Perl modules: how to write and use
perlmodstyle Perl modules: how to write modules with style
perlmodinstall Perl modules: how to install from CPAN
perlnewmod Perl modules: preparing a new module for distribution.
********************************
Thanks,
Mike
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2007 07:57 AM
тАО04-13-2007 07:57 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2007 08:00 AM
тАО04-13-2007 08:00 AM
Re: How to use Perl Module Spreadsheet::WriteExcel module
If you have followed the standard steps for installing Perl modules, then every should be ready for you to use the module you installed.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2007 08:01 AM
тАО04-13-2007 08:01 AM
Re: How to use Perl Module Spreadsheet::WriteExcel module
just try something like this
#!/usr/bin/perl
use strict;
use diagnostics;
use Spreadsheet::WriteExcel;
my $workbook=Spreadsheet::WriteExcel->new("name of excel file to create");
my $worksheet=$workbook->add_worksheet();
read the manpage on Spreadsheet::WriteExcel it has some good examples.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2007 08:02 AM
тАО04-13-2007 08:02 AM
Re: How to use Perl Module Spreadsheet::WriteExcel module
Did you install 'perl' and want to install 'Spreadsheet::WriteExcel' or did you install Spreadsheet::WriteExcel in an existing perl environment, and now wonder how to use it?
In the first case, the easiest way is to use CPAN, which is shipped with every perl:
# perl -MCPAN -e'install Spreadsheet::WriteExcel'
As Spreadsheet::WriteExcel depends on other modules, this command will ask you to accept the installation of the other modules too. You might need root access to install all these. If it is the first time you run -MCPAN, it will also ask some other questions to setup the CPAN environment to suit your needs.
In the second case, try
# perldoc Spreadsheet::WriteExcel
or
# man Spreadsheet::WriteExcel
Enjoy, Have FUN! H.Merijn [ who could not resist a smile reading that the perl module was installed ]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2007 12:07 PM
тАО04-13-2007 12:07 PM
Re: How to use Perl Module Spreadsheet::WriteExcel module
We download one of your scripts and it is giving error on the following line.
sub usage ()
($xls //= $title) =~ s/\.csv$/.xls/;
Any one can help. Appreciate your help.
Regards,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2007 12:18 PM
тАО04-13-2007 12:18 PM
Re: How to use Perl Module Spreadsheet::WriteExcel module
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2007 12:41 PM
тАО04-13-2007 12:41 PM
Re: How to use Perl Module Spreadsheet::WriteExcel module
Look at the name mentioned for the following entry in "perl581delta.pod"
==================
A new operator // (defined-or) will be available. This means that one will be able to say
$a // $b
instead of
defined $a ? $a : $b
and
$c //= $d;
instead of
$c = $d unless defined $c;
The operator will have the same precedence and associativity as ||. A source code patch against the Perl 5.8.1 sources will be available in CPAN as authors/id/H/HM/HMBRAND/dor-5.8.1.diff.
================
fwiw,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-13-2007 12:58 PM
тАО04-13-2007 12:58 PM
Re: How to use Perl Module Spreadsheet::WriteExcel module
btw... The header to the section with the above text reads:
"Future Directions
The following things might happen in future. "
Maybe they did not happen for your perl install.
I think you can replace the code line with (untested):
$xls = $title unless defined $xls;
$xls =~ s/\.csv$/.xls/;
btw 2... it was tempting to jokingly reply that the error really meant 'foul language ahaed'.
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2007 03:29 PM
тАО04-29-2007 03:29 PM