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 <[EMAIL PROTECTED]> 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 > > [EMAIL PROTECTED]:~$ 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > http://learn.perl.org/ > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/