Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Perl-Upgradation from 5.8 to 5.12 Post 302477422 by donisback on Sunday 5th of December 2010 12:21:32 PM
Old 12-05-2010
Perl-Upgradation from 5.8 to 5.12

Hi,
I have UNIX system on which Perl is already installed. When I run the command
Code:
perl -v

. It gives the output as
This is perl, v5.8.8 built for x86_64-linux-thread-multi

Copyright 1987-2006, Larry Wall

I wanted to upgrade it to the latest version. So, I downloaded the perl onto my Windows desktop, transferred it to Unix system using Winscp and installed it as per the README file. The installation went on fine, but the version still shows as 5.8.8

I know the reason because the PATH is given as 5.8.8
Please the code below:
Code:
[ usher4500 usrcscmssvc CMSDV1 ]echo $PATH
/u01/app/oracle/product/11.1.0/db_1/bin:/usr/ccs/bin:/usr/bin/X11:/u01/app/oracle/product/11.1.0/db_1/Apache/perl/bin:/bin:/usr/bin:/usr/local/bin:/usr/lbin:/etc:/u01/app/oracle/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/home/usrcscmssvc/bin:.
[ usher4500 usrcscmssvc CMSDV1 ]pwd
/home/usrcscmssvc
[ usher4500 usrcscmssvc CMSDV1 ]cd perl-5.12.2/
[ usher4500 usrcscmssvc CMSDV1 ]perl -v

This is perl, v5.8.8 built for x86_64-linux-thread-multi

Copyright 1987-2006, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

[ usher4500 usrcscmssvc CMSDV1 ]/home/usrcscmssvc/perl-5.12.2/perl -v

This is perl 5, version 12, subversion 2 (v5.12.2) built for x86_64-linux

My questions are:
1. How can I uninstall the current version (5.8) and install the latest version (5.12)?
This way, the default perl version should be 5.12
2. If I can have two perls on my system, then how do I install a module Excel-Writer-XLSX? This module requires atleast Perl version of 5.10 .Since the default version shows it as 5.8 how do I change it?
http://search.cpan.org/~jmcnamara/Excel-Writer-XLSX-0.02/lib/Excel/Writer/XLSX.pm
3. The only reason why I use Perl is to write into excel. But, the problem with excel is it can write only 65,532 records. So, I found the above module which writes into xlsx. The module which we are using currently is Spreadsheet:WriteExcel
Now, how do I upgrade without affecting the existing perl scripts? I do not want to change the existing Perl scripts. Moreover, if i upgrade I think I've to reinstall the Spreadsheet:WriteExcel module. Please let me how I do this?

Thanks for helping

---------- Post updated at 10:51 PM ---------- Previous update was at 02:17 PM ----------

Could someone help me in upgrading the Perl from 5.8 to 5.12 without loss to the existing perl scripts?
 

10 More Discussions You Might Find Interesting

1. Solaris

CPU upgradation on V880

We have 4 CPU in V880 server. we need to upgrade by one or two CPUs . Is it possible on 5 or 6 CPU on V880 (3 Replies)
Discussion started by: hdk2oo5
3 Replies

2. Solaris

Package Upgradation in solaris

Hi how would i upgrade any package from (say) version 4.1 to version 4.2 ? Help needed and help appreciated Thanks chakri (3 Replies)
Discussion started by: chakri.penguin
3 Replies

3. Solaris

Whether the upgradation of oracle DB needs upgradation of sun solaris also?

Currently we are using Oracle9i Enterprise Edition Release 9.2.0.4.0 in sun solaris 5.9 server. We wnt to upgrade the oracle database to 10.2g. My doubt is that " what are the implications of this database upgradation in sun solaris server" "whether we need to upgrade the sunsolaris 5.9... (3 Replies)
Discussion started by: vamshikrishnab
3 Replies

4. Linux

Linux kernel upgradation

Hi, I am not able to upgrade the Linux kernel version 2.6.21.5 to 2.6.25. I tried applying the patches available in the Linux site. The patches are not getting applied successfully. I have the linux kernel 2.6.21.5 with some samsung patches on top of it. I want to upgrade that kernel to 2.6.25... (5 Replies)
Discussion started by: poojasreejith
5 Replies

5. Red Hat

Linux RHEL 4 upgradation problem

Hi All, I have some problem in upgrading Linux from kernel 2.4.21-4.EL to 2.4.21-27.EL. I downloaded the package from Rpm source : kernel-source-2.4.21-27.EL.i386 RPM I upgraded using rpm -Uvh kernel-source-2.4.21-27.EL It installed sucessfully, But when i check grub.conf file... (3 Replies)
Discussion started by: VNK
3 Replies

6. AIX

AIX 5.3 ML/TL upgradation

hi everybody, I want to apply the TL 5300-05. Presently TL is 5300-00. What steps i have to do while upgrading the maintenance level.??? Is it necessary to upgrade the firmware also?? If yes then my current firmware is Platform Firmware level is 3F050607 System Firmware level is... (3 Replies)
Discussion started by: jit15975
3 Replies

7. Solaris

solaris upgradation from 8 to 10

Hi, Can anybody help me to upgrade my machinne from solaris 8 to solaris 10 Regards, ravich (1 Reply)
Discussion started by: ravich
1 Replies

8. Solaris

DNS Bind Upgradation in Solaris 10

Hi All , My current Bind version is BIND 9.6.1 and I want upgrade the same to BIND 9.8.1-P1 ,Can any one provide the steps to do the same ? Solaris Version : 5.10 Generic_144488-11 sun4v sparc Thanks , (0 Replies)
Discussion started by: sandeep.tk
0 Replies

9. AIX

TL upgradation for AIX machine. Need help

Hi Experts, I have an AIX machine oslevel -s 5300-00-00 Now I need to upgrade its TL to a level 5300-06-03-0732 Kindly let me know if we can do this directly. I guss we have to upgrade TL from 1 , 2 ,3 ,4, 5 and 6, then I have to upgrade to 06-03-0732 . Am i right here ? (6 Replies)
Discussion started by: jayadeava
6 Replies

10. Programming

PERL: In a perl-scripttTrying to execute another perl-script that SETS SOME VARIABLES !

I have reviewed many examples on-line about running another process (either PERL or shell command or a program), but do not find any usefull for my needs way. (Reviewed and not useful the system(), 'back ticks', exec() and open()) I would like to run another PERL-script from first one, not... (1 Reply)
Discussion started by: alex_5161
1 Replies
Spreadsheet::XLSX(3pm)					User Contributed Perl Documentation				    Spreadsheet::XLSX(3pm)

NAME
Spreadsheet::XLSX - Perl extension for reading MS Excel 2007 files; SYNOPSIS
use Text::Iconv; my $converter = Text::Iconv -> new ("utf-8", "windows-1251"); # Text::Iconv is not really required. # This can be any object with the convert method. Or nothing. use Spreadsheet::XLSX; my $excel = Spreadsheet::XLSX -> new ('test.xlsx', $converter); foreach my $sheet (@{$excel -> {Worksheet}}) { printf("Sheet: %s ", $sheet->{Name}); $sheet -> {MaxRow} ||= $sheet -> {MinRow}; foreach my $row ($sheet -> {MinRow} .. $sheet -> {MaxRow}) { $sheet -> {MaxCol} ||= $sheet -> {MinCol}; foreach my $col ($sheet -> {MinCol} .. $sheet -> {MaxCol}) { my $cell = $sheet -> {Cells} [$row] [$col]; if ($cell) { printf("( %s , %s ) => %s ", $row, $col, $cell -> {Val}); } } } } DESCRIPTION
This module is a (quick and dirty) emulation of Spreadsheet::ParseExcel for Excel 2007 (.xlsx) file format. It supports styles and many of Excel's quirks, but not all. It populates the classes from Spreadsheet::ParseExcel for interoperability; including Workbook, Worksheet, and Cell. SEE ALSO
Text::CSV_XS, Text::CSV_PP http://search.cpan.org/~hmbrand/ A pure perl version is available on http://search.cpan.org/~makamaka/ Spreadsheet::ParseExcel http://search.cpan.org/~kwitknr/ Spreadsheet::ReadSXC http://search.cpan.org/~terhechte/ Spreadsheet::BasicRead http://search.cpan.org/~gng/ for xlscat likewise functionality (Excel only) Spreadsheet::ConvertAA http://search.cpan.org/~nkh/ for an alternative set of cell2cr () / cr2cell () pair Spreadsheet::Perl http://search.cpan.org/~nkh/ offers a Pure Perl implementation of a spreadsheet engine. Users that want this format to be supported in Spreadsheet::Read are hereby motivated to offer patches. It's not high on my todo-list. xls2csv http://search.cpan.org/~ken/ offers an alternative for my "xlscat -c", in the xls2csv tool, but this tool focusses on character encoding transparency, and requires some other modules. Spreadsheet::Read http://search.cpan.org/~hmbrand/ read the data from a spreadsheet (interface module) AUTHOR
Dmitry Ovsyanko, <do@eludia.ru<gt>, http://eludia.ru/wiki/ Patches by: Steve Simms Joerg Meltzer Loreyna Yeung Rob Polocz Gregor Herrmann H.Merijn Brand endacoe Pat Mariani Sergey Pushkin ACKNOWLEDGEMENTS
Thanks to TrackVia Inc. (http://www.trackvia.com) for paying for Rob Polocz working time. COPYRIGHT AND LICENSE
Copyright (C) 2008 by Dmitry Ovsyanko This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available. perl v5.10.1 2010-05-16 Spreadsheet::XLSX(3pm)
All times are GMT -4. The time now is 03:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy