Living with smart match breakage

Gareth Harper spansh+london at gmail.com
Thu Jul 4 11:35:34 BST 2013


On 4 July 2013 11:30, Gareth Harper <spansh+london at gmail.com> wrote:

> perl -E 'use experimental "smartmatch";say "it works in perl $^V"'
> Can't locate experimental.pm in @INC (@INC contains: /etc/perl
> /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5
> /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14
> /usr/local/lib/site_perl .) at -e line 1.
> BEGIN failed--compilation aborted at -e line 1.
>
>
> perl -v
>
> This is perl 5, version 14, subversion 2 (v5.14.2) built for
> i486-linux-gnu-thread-multi-64int
>

My bad, after I had assumed "use experimental" was the same as "use strict"
or "use feature".

After installing "experimental" from cpan I get.


perl -E 'use experimental "smartmatch";say "it works in perl $^V"'
it works in perl v5.14.2


More information about the london.pm mailing list