Re: Can't locate feature.pm in @INC
- From: tomasz@xxxxxxxxx (Tomasz Finc)
- Date: Wed, 28 May 2008 23:36:58 -0700
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@xxxxxxxxx> 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@xxxxxxxx
For additional commands, e-mail: beginners-help@xxxxxxxx
http://learn.perl.org/
- References:
- Can't locate feature.pm in @INC
- From: William
- Can't locate feature.pm in @INC
- Prev by Date: Can't locate feature.pm in @INC
- Next by Date: Re: Can't locate feature.pm in @INC
- Previous by thread: Can't locate feature.pm in @INC
- Next by thread: Re: Can't locate feature.pm in @INC
- Index(es):
Relevant Pages
|