Hi, I would not try to understand the problem too much, but instead just get rid of it and improve the perl environment on your server.
To do this I suggest that you upgrade to a late version of perl. You can get sources for 5.8.1 from http://www.perl.com/pub/a/language/info/software.html and build them yourself if you want. It's best to put them in /usr/local/ and not /usr/atria/ so you don't confuse the ClearCase installation. You can get perl 5.8.0 for Solaris 8 in Solaris pkg format from http://www.sunfreeware.com. That will install in /opt/ which is a good location too. When you have the late version of perl installed, then symlink it into the atria bin directory for compatibility with your current shell environment in term of PATH and the like, i.e from the solaris command line: mv /usr/atria/bin/Perl /usr/atria/bin/Perl.orig ln -s /usr/local/bin/perl /usr/atria/bin/Perl # sub /opt/...for /usr/local/...if needed Do the same for all other perl executables in /usr/atria/bin/, e.g. perldoc if it's there. I don't guarantee this will fix all the perl configuration problems on your server, but I think it will help and at least you will have a cleanly installed, late rev of the perl distribution on it. You may get some errors about missing modules, in which case they will have to be added to your new perl installation. -tristram -----Original Message----- From: Halkyard, Jim [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 8:52 AM To: '[EMAIL PROTECTED]' Subject: perl -v produces different output each time Hi all, May I start by thanking all the people who have helped me in the past, and I hope you can help me with this one. I have a Solaris 5.8 server with a version of Perl provided as part of Rational ClearCase, and I am getting very strange errors. Sometimes scripts fail when use'ing Getopt::Long because of the version requirements of Getopt::Long. The problem doesn't always appear so I tried to find the source of the problem, and I think it's this. I ran /usr/atria/bin/Perl -v many times and got different results. 109 fe2sk227 ccadmin> /usr/atria/bin/Perl -v This is perl, version 4.864 with DEBUGGING EMBED Copyright 1987-1996, 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.0 source kit. 110 fe2sk227 ccadmin> /usr/atria/bin/Perl -v This is perl, version 5.002 with DEBUGGING EMBED Copyright 1987-1996, 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.0 source kit. 111 fe2sk227 ccadmin> /usr/atria/bin/Perl -v This is perl, version 4.864 with DEBUGGING EMBED Copyright 1987-1996, 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.0 source kit. Has anybody got any ideas? These are the errors from the script 116 fe2sk227 ccadmin> /usr/atria/config/scheduler/tasks/sync_receive Perl 5 required--this is only version 4.864, stopped at /usr/atria/lib/perl5/Getopt/Long.pm line 12. BEGIN failed--compilation aborted at /usr/atria/config/scheduler/tasks/sync_receive.bat line 35. 117 fe2sk227 ccadmin> /usr/atria/config/scheduler/tasks/sync_receive Perl 3.67001847483647 required--this is only version 4.864, stopped at /usr/atria/lib/perl5/Getopt/Long.pm line 12. BEGIN failed--compilation aborted at /usr/atria/config/scheduler/tasks/sync_receive.bat line 35. Cheers, Jim Jim Halkyard Configuration Management Engineer NEC Technologies (UK) Ltd Tel: +44 (0) 118 965 4632 www.nectech.co.uk mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]