Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

Wwwxxx.APC, wwwxxx CN2, can't locate feature.pm in @inc (@inc contains, Wwwxxx ba2, wwwxxx Bhaskar, wwwxxx Bhaskar, XxxxDup, wwwxxix Buzz, wwwxxxdbgf, ncurses font size

Links

XODOX
Impressum

#1: Can"t locate feature.pm in @INC

Posted on 2008-05-29 07:59:07 by anthony brooke

Hello, at http://search.cpan.org/~rgarcia/perl-5.10.0/pod/perlsyn.pod# Switc=
h_statements they say=0AStarting from Perl 5.10, you can say=0Ause feature =
"switch"; But when I am using "This is perl, v5.8.8 built for i486-lin=
ux-gnu-thread-multi" I still got error of william@william-pc:~$=
perl=0Ause feature "switch";=0ACan't locate feature.pm in @INC (@INC conta=
ins: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/l=
ib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/=
lib/site_perl .) at - line 1.=0ABEGIN failed--compilation aborted at - line=
1. =0AHow can I solve this ? Thanks =0ASend instant messages to =
your online friends http://uk.messenger.yahoo.com

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

Report this message

#2: Re: Can"t locate feature.pm in @INC

Posted on 2008-05-29 08:36:58 by Tomasz Finc

You are trying to use a feature that is in perl-5.10 and not in your
installed version of perl 5.8.8.

If you want switch functionality then you might want to install the
Switch cpan module from which you will be able to

use Switch;

switch ($val) {
case 1 { print "number 1" }
case "a" { print "string a" }
}

or upgrade to perl-5.10

--tomasz

On Wed, May 28, 2008 at 10:59 PM, William <esia168@yahoo.com> wrote:
> Hello, at http://search.cpan.org/~rgarcia/perl-5.10.0/pod/perlsyn.pod# Switch_statements they say
> Starting from Perl 5.10, you can say
> use feature "switch";
>
> But when I am using "This is perl, v5.8.8 built for i486-linux-gnu-thread-multi"
>
> I still got error of
>
> william@william-pc:~$ perl
> use feature "switch";
> Can't locate feature.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at - line 1.
> BEGIN failed--compilation aborted at - line 1.
>
>
> How can I solve this ? Thanks
>
>
> Send instant messages to your online friends http://uk.messenger.yahoo.com
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
> http://learn.perl.org/
>
>
>

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

Report this message

#3: Re: Can"t locate feature.pm in @INC

Posted on 2008-05-29 09:32:19 by anthony brooke

=0A----- Original Message ----=0A> From: Tomasz Finc <tomasz@gmail.com>=0A>=
To: William <esia168@yahoo.com>=0A> Cc: beginner perl mailling list <begin=
ners@perl.org>=0A> Sent: Thursday, May 29, 2008 14:36:58=0A> Subject: Re: C=
an't locate feature.pm in @INC=0A> =0A> You are trying to use a feature tha=
t is in perl-5.10 and not in your=0A> installed version of perl 5.8.8.=0A> =
=0A> If you want switch functionality then you might want to install the=0A=
> Switch cpan module from which you will be able to=0A> =0A> use Switch;=0A=
> =0A> switch ($val) {=0A> case 1 { print =
"number 1" }=0A> case "a" { print "string a" }=0A> =
}=0A> =0A> or upgrade to perl-5.10=0A> =0A> --tomasz =0AOmg, so =
careless am I, I thought 5.8.8 is later than 5.10 , because I interpret 5.1=
0 as 5.1 , as in floating number the zero after the dot does not give signi=
ficant value.But I forgot it's version number not floating number, lol, Th=
anks =0ASend instant messages to your online friends http://uk.messeng=
er.yahoo.com

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

Report this message