in reply to Re: installing perl 5.12.3
in thread installing perl 5.12.3

Bah, that should be
#!/usr/bin/perl -- use strict; use warnings; use Config; Main( @ARGV ); exit( 0 ); sub Main { my $sep = $Config{path_sep}; my $pat = 'export PATH=%s$PATH'; $pat = 'set PATH=%s%%PATH%%' if $sep eq ';' ; printf "$pat\n", join $sep, ( uniq( grep length, grep defined, map { $Config{$_} } qw' installsitebin installvendorbin installbin installsitescript installvendorscript installscript ' ), ), ''; } sub uniq (@) { my %seen = (); grep { not $seen{$_}++ } @_; } __END__

Replies are listed 'Best First'.
Re^3: installing perl 5.12.3
by rob171171 (Acolyte) on Apr 21, 2011 at 10:07 UTC

    the output od the latest code is

    export PATH=/usr/bin:$PATH

    I have added this line to both /root/perl5/perlbrew/ and etc/bashrc

    however im still seeing Perl 5.8.8

      Guys / Gals Thank you very much for your help & patience in getting me sorted. Much appreciated

      ok think I have managed to get perlbrew installing so I will let ye know how that goes

      I have also added export PATH=/usr/bin:$PATH to $HOME/bashrc

      but to no avail

      any further suggestions or recommendations on how this fool can mend his ways???

        since you seem to have sorted out your dilemma, for posterity, you should run this program using a full path to your target perl binary, like
        $home/localperl/bin/perl path900554.pl