Living with smart match breakage
spansh+london at gmail.com
Thu Jul 4 11:30:42 BST 2013
On 4 July 2013 11:11, David Cantrell <david at cantrell.org.uk> wrote:
> On Thu, Jul 04, 2013 at 05:41:31PM +1000, Toby Wintermute wrote:
> > On 15 June 2013 09:03, Gordon Banner <tech at gordonbanner.me.uk> wrote:
> > > Finally, the OP mentioned "convoluted boilerplate" and was offered
> > >
> > > no warnings 'experimental::smartmatch';
> > > # or
> > > use experimental 'smartmatch';
> > Try putting either of those in a Perl version prior to 5.17! It just
> > fails out at compile time.
> $ perl -E 'use experimental "smartmatch";say "it works in perl $^V"'
> it works in perl v5.12.4
> > I reckon the convoluted boilerplate mentioned involves putting tests
> > for perl versions around those, which is indeed convoluted.
> It's a good thing that the 'experimental' pragma does that for you then.
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.
This is perl 5, version 14, subversion 2 (v5.14.2) built for
More information about the london.pm