<pre>Hi,<br><br>I bought the O&#39;Reilly 5th edition Learning Perl the other day and it&#39;s<br>great. I am new to programming and Perl as well. I do know my way<br>around Linux but I am having problems upgrading from the version that<br>
was on my OS (Cent OS 5.2) to 5.10. I downloaded Perl 5.10 from<br><a class="moz-txt-link-freetext" href="http://www.cpan.org/authors/id/R/RG/RGARCIA/perl-5.10.0.tar.gz">http://www.cpan.org/authors/id/R/RG/RGARCIA/perl-5.10.0.tar.gz</a>, then<br>
tar -xvzf perl-5.10.0.tar.gz the package in /usr/local/bin   I then<br>followed the README guide that said to:<br><br>./Configure -des -Dprefix=$HOME/localperl<br>  make test<br>  make install<br><br>Now, the first command was probably my mistake because I really have<br>
no idea what that would do. I figured that I could simply use the<br>shebang after make test and make install was done &quot;doing it&#39;s thing&quot;<br>and type out #!<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>usr/local/bin/perl-5.10.0 or  #!/usr/local/bin<span class="moz-txt-tag">/</span></i><br>
perl-5.10 and everything was work just fine and I would be using Perl<br>5.10 This obviously is not the case as now it tells me I still have<br>5.8.8 installed. I know this is probably a very common problem and<br>I&#39;ll try and do all the research I can when I find the time but if any<br>
of you that are a lot more experienced could help me out and &quot;put me<br>in the right direction&quot; that would be great.<br><br>Here is the code from the book (page 68) I am trying to run:<br>---------------------------------------------------------------------------------------<br>
#!/usr/local/bin/perl-5.10.0     # I&#39;ve also used perl5.10 and every<br>other thing I could think of...<br>use 5.010;<br>use strict;<br><br>sub marine {<br>        $n += 1;<br>        print &quot;Hello, sailor number $n!\n&quot;;<br>
}<br><br>&amp;marine;<br>&amp;marine;<br>&amp;marine;<br>----------------------------------------------------------------------------------------<br>And here is the output I am getting when I try running it:<br>Perl v.5.10.0 required --this is only v.5.8.8<br>
----------------------------------------------------------------------------------------<br><br>I&#39;ve also noticed that now there&#39;s a perl5.10.0 located in the <i class="moz-txt-slash"><span class="moz-txt-tag">/</span>root<span class="moz-txt-tag">/</span></i><br>
localperl/bin so I am sure it has something to do with the<br>above .Configure command. Can anyone give me some advice on how to get<br>5.10 working? I feel like I am close, but nothing so far.<br><br>thanks in advance,<br>
jim</pre>