how to upgrade perl?

how to upgrade perl?

am 27.07.2007 11:17:06 von Practical Perl

hello,

My current system (RH linux kernel 2.4) is running perl 5.8.0.
When installing something I got the errors:
Warning: I could not locate your pod2man program. Please make sure,
your pod2man program is in your PATH before you execute 'make'
So I think I may need to upgrade perl to the current version.
But I didn't have experience on this.Can anybody show me a direction?
Thanks.

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: how to upgrade perl?

am 27.07.2007 16:13:45 von Tom Phoenix

On 7/27/07, Jen mlists wrote:

> So I think I may need to upgrade perl to the current version.
> But I didn't have experience on this.Can anybody show me a direction?

You can upgrade perl in pretty much the same way you build and install
perl from the source. In fact, it may be easier to upgrade than to
build the it in the first place; if you're not sure how to configure
the new perl, you can see how the previous version was configured by
searching its config.pm file. Try this command if you need to see that
file:

perldoc -m config

If you get stuck along the way, let us know where. Good luck with it!

--Tom Phoenix
Stonehenge Perl Training

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: how to upgrade perl?

am 27.07.2007 18:54:07 von Practical Perl

Thank you Tom.I have two choices,one is to ask the tech support guys
in IDC to upgrade the OS to new version which has higher version perl
installed.if they don't like to do that,I would have to upgrade perl
by myself following your suggestion.

--jen

2007/7/27, Tom Phoenix :
> On 7/27/07, Jen mlists wrote:
>
> > So I think I may need to upgrade perl to the current version.
> > But I didn't have experience on this.Can anybody show me a direction?
>
> You can upgrade perl in pretty much the same way you build and install
> perl from the source. In fact, it may be easier to upgrade than to
> build the it in the first place; if you're not sure how to configure
> the new perl, you can see how the previous version was configured by
> searching its config.pm file. Try this command if you need to see that
> file:
>
> perldoc -m config
>
> If you get stuck along the way, let us know where. Good luck with it!
>
> --Tom Phoenix
> Stonehenge Perl Training
>

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Question about map

am 11.08.2007 05:09:10 von john.moon

Does anyone see anything wrong with the following:

-labels=3D> {map ({$$_[0]=3D>$$[1]>0?"$$_[0] *":"$$_[0] _"} @$servers)},

I can not get the map to return the _true_ value... $$_[1] is either 1
or 0...=20

The following works...

-labels=3D> {map ({$$_[0]=3D>&imap($$_[0],$$_[1])} @$servers)},

sub imap{
my ($server, $selected) =3D @_;
return $selected>0?"$server *":"$server _";
}

TIA...=20

John W Moon=20
Systems Project Analyst=20
Enterprise Information Technology Services (EITS)=20
Department of Management Services=20
4050 Esplanade Way, Cube 235.3Z=20
Tallahassee, Fl 32399-0950=20
Office: (850)922-7511=20
Email: John.Moon@DMS.MyFlorida.com=20

We Serve those who Serve Florida



--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: Question about map

am 11.08.2007 06:15:50 von krahnj

Moon, John wrote:
> Does anyone see anything wrong with the following:
>
> -labels=> {map ({$$_[0]=>$$[1]>0?"$$_[0] *":"$$_[0] _"} @$servers)},
^^^^^
$$[1] is wrong. It should be $$_[1] or better $_->[1].


John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/