Living with smart match breakage
Abigail
abigail at abigail.be
Thu Jul 4 12:23:03 BST 2013
On Thu, Jul 04, 2013 at 11:35:34AM +0100, Gareth Harper wrote:
> 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".
And it is:
$ /opt/perl/5.8.9/bin/perl -le 'BEGIN {print $]} use feature;'
5.008009
Can't locate feature.pm in @INC (@INC contains: ... .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.
Each of "strict", "feature", and "experimental", are perl module, and
for each of them, there's a certain minimum version for which they are
part of the standard distribution. (5.000 for strict.pm, 5.10.0 for
feature.pm, and 5.14.0 for experimental.pm).
Abigail
More information about the london.pm
mailing list