[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Upgrade troubles with Perl



On Wed, May 14, 2014 at 6:33 AM, Christoph Biedl wrote:

> In 5.18, upstream decided to discourage usage of smart matches and
> given..when after these have existed since 5.10 (or: more than six
> years) by marking them as experimental, and did this in a very harsh
> way. This will drive me away from using Perl as my preferred
> programming language.

I'm using this comment and one-liner to workaround this issue:

# Silence warnings about smartmatch being experimental
# The smartmatch we use works under recent Perl versions
no if $] >= 5.017011, warnings => 'experimental::smartmatch';

-- 
bye,
pabs

http://wiki.debian.org/PaulWise


Reply to: