Thanks for reply,
I found below paragraph in 'perldocs'.. I could install newer perl in total different location without disturbing current perl versions.
=head2 Maintaining completely separate versions
Many users prefer to keep all versions of perl in completely
separate directories. This guarantees that an update to one version
won't interfere with another version. (The defaults guarantee this for
libraries after 5.6.0, but not for executables. TODO?) One convenient
way to do this is by using a separate prefix for each version, such as
sh Configure -Dprefix=/opt/perl5.12.3
and adding /opt/perl5.12.3/bin to the shell PATH variable. Such users
may also wish to add a symbolic link /usr/local/bin/perl so that
scripts can still start with #!/usr/local/bin/perl.
Others might share a common directory for maintenance sub-versions
(e.g. 5.10 for all 5.10.x versions), but change directory with
each major version.
Though it has solved major problems for me, I still have some issues.
When I search for man pages for perl, it is showing pages meant for older perl version.
So situation is,
This is perl 5, version 12, subversion 3 (v5.12.3) built for x86_64-linux
And Man pages are,
The Perl motto is "Thereās more than one way to do it." Divining how many more is left as an exercise to the reader.
The three principal virtues of a programmer are Laziness, Impatience, and Hubris. See the Camel Book for why.
perl v5.8.8 2006-01-07 PERL(1)
How do I set manpath during compile time?
Is there a way I can copy man pages meant for NEWER perl version to location where OLD perl man pages are kept, without disturbing anything?
I cannot ask people to add new manpath to their profile file.
Please suggest on this.